查看docker网络类型与接口

root@book:~# docker network ls
NETWORK ID     NAME      DRIVER    SCOPE
25f83fdf8aaa   bridge    bridge    local
990c8d87fe82   host      host      local
2f1eabf65873   none      null      local

root@book:~# docker network inspect host
[
    {
        "Name": "host",
        "Id": "990c8d87fe8236d250669d099a9ce7052c6119b90aac0a574de7b0c01f67cd0a",
        "Created": "2023-08-03T15:04:05.773645903+08:00",
        "Scope": "local",
        "Driver": "host",
        "EnableIPv6": false,
        "IPAM": {
            "Driver": "default",
            "Options": null,
            "Config": []
        },
        "Internal": false,
        "Attachable": false,
        "Ingress": false,
        "ConfigFrom": {
            "Network": ""
        },
        "ConfigOnly": false,
        "Containers": {},
        "Options": {},
        "Labels": {}
    }
]

你可能感兴趣的:(docker,java,容器,网络,查看,linux)