CentOS7.3安装Docker之后ssh连接失败
解决方案:
1.修改配置文件 /etc/default/docker文件新增一行
vi /etc/default/docker
DOCKER_OPTS="--bip=172.20.1.0/16"
2.修改配置文件/etc/systemd/system/docker.service文件新增
vi /etc/systemd/system/docker.service
EnvironmentFile=-/etc/default/docker
ExecStart=/usr/bin/dockerd $DOCKER_OPTS
3.重启Docker
sudo systemctl restart docker