dockersshd

Start sshd automatically with docker container


Given:

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?


Solution

  • You can try a more elegant way to do that with phusion/baseimage-docker

    https://github.com/phusion/baseimage-docker#readme