Open wzhanjun opened 4 years ago
查看docker中存在的网络:
docker network ls
查看bridge网络的详细配置:
docker network inspect bridge
创建了一个名为"my-net"的网络
docker network create my-net
将Web服务加入my-net网络中
docker network connect my-net test_demo
断开容器与docker0的连接
docker network disconnect bridge test_demo
windows 将docker-destop 存储文件移出C盘放置到其它目录
https://segmentfault.com/a/1190000038912621
docker 网络命令
查看docker中存在的网络:
docker network ls
查看bridge网络的详细配置:
docker network inspect bridge
创建了一个名为"my-net"的网络
docker network create my-net
将Web服务加入my-net网络中
docker network connect my-net test_demo
断开容器与docker0的连接
docker network disconnect bridge test_demo