1.查看容器IP地址
docker container inspect --format '{{.NetworkSettings.IPAddress}}' webhost
其中 --format起到的作用是过滤。

2.查看容器端口映射
docker container port webhost
其中webhost是容器名

其中前面是容器的端口。
3.docker 网络命令


1.查看容器IP地址
docker container inspect --format '{{.NetworkSettings.IPAddress}}' webhost
其中 --format起到的作用是过滤。
2.查看容器端口映射
docker container port webhost
其中webhost是容器名
其中前面是容器的端口。
3.docker 网络命令
本文标题:master docker 3(网络)
本文链接:https://www.haomeiwen.com/subject/nfwjxhtx.html
网友评论