Docker Community Forums

Share and learn in the Docker community.

Dockerize an ssh container


(Oliver76) #1

Hello Comunity,

I hope you can help me.
I have build the docker image, have run the container but I cannot connect to the container via ssh.
I have execute the steps from the tutorial with the ubuntu image ‘ssh dokerize’ from your webpage.
docker ps -a
COMMAND PORTS
/usr/sbin/sshd -D 0.0.0.0:2222->22tcp

1.How can I connect to the container?
The IP Address of the Container is:
docker inspect grep IP
The host system is different from image (Host System is CentOS).

Regards,

Olaf


(Oliver76) #2

Now it works. I must use docker run --privileged. Tested on centos. Problem had before on archlinux, centos and ubuntu. Maybe it will help other users.