Given:
apt-get install ssh
)Problem: each when I start container I have to run sshd manually service ssh start
Tried: update-rc.d ssh defaults
, but it does not helps.
Question: how to setup container to start sshd service automatically during container start?
Just try:
ENTRYPOINT service ssh restart && bash
in your dockerfile, it works fun for me!
more details here: How to automatically start a service when running a docker container?