Article 58RWT Docker container with SSH

Docker container with SSH

by
banderas20
from LinuxQuestions.org on (#58RWT)
Hi.

I'm running some tests and I have to launch 2 docker instances with SSH server on them.
I use centos or other images, but I'm unable to issue the command "service" from within them to see the status of the sshd.

I have also tried to install ssh-server by 2 means:
1. With a dockerfile and then building a custom image.
2. From inside the docker instance by issuing apt-get install openssh-server

I have not succeeded in either case.

What am I doing wrong?

Thanks!latest?d=yIl2AUoC8zA latest?i=CsvXRWfefv0:-6_YwA5qM_g:F7zBnMy latest?i=CsvXRWfefv0:-6_YwA5qM_g:V_sGLiP latest?d=qj6IDK7rITs latest?i=CsvXRWfefv0:-6_YwA5qM_g:gIN9vFwCsvXRWfefv0
External Content
Source RSS or Atom Feed
Feed Location https://feeds.feedburner.com/linuxquestions/latest
Feed Title LinuxQuestions.org
Feed Link https://www.linuxquestions.org/questions/
Reply 0 comments