首页 > 解决方案 > ssh not working after docker installation

问题描述

I have created a virtual machine which has centos7 installed. I have installed docker CE successfully too using offical docs. After I add my user to docker group, I tried starting the docker service using this command:

sudo systemctl start docker

but it gets stuck & I am exited from putty. When I try to login again through putty, it says connection refused.

ssh login through putty does not work unless I restart the system.

any suggestions?

标签: dockersshcentos7

解决方案


May be the he Docker default bridge (docker0) network conflicts with your internal network hosts access. Try to configure the default bridge to a different subnet.

Look at Use bridge networks documentation for details.

May be intersting this post too How do I configure the default bridge (docker0) network for Docker Engine to a different subnet?


推荐阅读