获取容器的ip:
docker inspect ab8fef3680c4|grep IPAddress
默认只给root用户使用:所以要单独将非root账户添加进组!
sudo gpasswd -a 账号名 docker
sudo usermod -aG docker 账户名
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