赞
踩
docker network ls
docker network inspect bridge|host|none
docker network create custom_net
docker network connect [网络名] [容器名]
docker network disconnect [网络名] [容器名]
apt-get update
E: List directory /var/lib/apt/lists/partial is missing. - Acquire (13: Permission denied)报错表示权限不足
解决办法:docker exec -u 0 -it [容器] bash
apt-get install net-tools
apt-get install iputils-ping
apt-get install -y iproute2
apt-get install vim
apt-get install -y telnet
host.docker.internal
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。