獲取容器的ip:
docker inspect ab8fef3680c4|grep IPAddress
默認只給root用戶使用:所以要單獨將非root賬戶添加進組!
sudo gpasswd -a 賬號名 docker
sudo usermod -aG docker 賬戶名
- 因為GFW的原因無法下載鏡像怎么辦扰路?
https://yq.aliyun.com/articles/110806?spm=5176.100239.blogcont59144.11.WU1Cx3
sudo apt-get update
sudo apt-get -y install apt-transport-https ca-certificates curl software-properties-common
curl -fsSL http://mirrors.aliyun.com/docker-ce/linux/debian/gpg | sudo apt-key add
sudo apt-get -y update
sudo apt-get -y install docker-ce