1.inspect介绍
Docker网络命令inspect是用来查看Docker网络的详细信息
2.inspect用法
docker network inspect [参数] NETWORK
[root@centos79 ~]# docker network inspect --help
Usage: docker network inspect [OPTIONS] NETWORK [NETWORK...]
Display detailed information on one or more networks
Options:
-f, --format string Format output using a custom template:
'json': Print in JSON format
'TEMPLATE': Print output using the given Go template.
Refer to https://docs.docker.com/go/formatting/ for more information about formatting output with templates
-v, --verbose Verbose output for diagnostics
[root@centos79 ~]#
3.inspect样例
3.1.查看Docker网络数据源信息
命令:文章来源:https://www.toymoban.com/news/detail-823546.html
docker network inspect bridge文章来源地址https://www.toymoban.com/news/detail-823546.html
[root@centos79 ~]# docker network ls
NETWORK ID NAME DRIVER SCOPE
3c318451380b brid
到了这里,关于8-Docker网络命令之inspect的文章就介绍完了。如果您还想了解更多内容,请在右上角搜索TOY模板网以前的文章或继续浏览下面的相关文章,希望大家以后多多支持TOY模板网!