docker 网络管理
参考:
https://blog.csdn.net/weixin_29743569/article/details/144070934
https://blog.csdn.net/Li_WenZhang/article/details/141098079
查看docker网络:
docker network ls
docker network inspect 网络名
删除docker网络:
docker network rm 网络id
创建一个自定义网络,指定子网范围:
docker network create --subnet=172.18.0.0/16 mynet
容器网络查看:
docker inspect -f ‘{{range .NetworkSettings.Networks}}{{.IPAddress}}{{end}}’ 容器id