Given:
- container based on ubuntu:13.10
- installed ssh (via
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:
in your dockerfile, it works fun for me!
more details here: How to automatically start a service when running a docker container?
Well, I used the following command to solve that
You can try a more elegant way to do that with phusion/baseimage-docker
https://github.com/phusion/baseimage-docker#readme
You can start ssh server when starting your container probably. Something like this:
Check out this official tutorial.