当前位置:   article > 正文

8-Docker网络命令之inspect_docker network inspect

docker network inspect

1.inspect介绍

Docker网络命令inspect是用来查看Docker网络的详细信息

2.inspect用法

docker network inspect [参数] NETWORK

  1. [root@centos79 ~]# docker network inspect --help
  2. Usage: docker network inspect [OPTIONS] NETWORK [NETWORK...]
  3. Display detailed information on one or more networks
  4. Options:
  5. -f, --format string Format output using a custom template:
  6. 'json': Print in JSON format
  7. 'TEMPLATE': Print output using the given Go template.
  8. Refer to https://docs.docker.com/go/formatting/ for more information about formatting output with templates
  9. -v, --verbose Verbose output for diagnostics
  10. [root@centos79 ~]#

3.inspect样例

3.1.查看Docker网络数据源信息

命令:

docker network inspect bridge

  1. [root@centos79 ~]# docker network ls
  2. NETWORK ID NAME DRIVER SCOPE
  3. 3c318451380b brid
声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/AllinToyou/article/detail/305586
推荐阅读
相关标签
  

闽ICP备14008679号