8-Docker网络命令之inspect

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网络数据源信息

命令:

docker network inspect bridge

[root@centos79 ~]# docker network ls
NETWORK ID     NAME      DRIVER    SCOPE
3c318451380b   brid

你可能感兴趣的:(docker,docker,容器,运维)