-
Notifications
You must be signed in to change notification settings - Fork 48
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
sshd #24
Comments
First I respond to your general question about processes in Dockers. Normally a docker has only one process running, which defines the docker runtime itself: the process starts the docker, and when it is terminated for any reason, the docker is also stopped. However, it is possible to make this only one process be a process manager, that will handle child processes. In regular Linux world, you certainly know It is the case of my Docker, and I use All of this to say that if the Docker is using a process manager, you can indeed extend the Docker and add more processes. And this is the case with this one. You will need to build your own Docker on top of mine through a Dockerfile, and add the proper configuration to start the sshd process at the end of
|
Any chance you would consider implementing this in the official dockerhub image? |
Using sshd to backup localhost and some NFS mounted filesystems on it as well. I hacked this by adding openrc and enabling sshd but this seems to not persist through restarts.
Disclaimer: This question may not be specific to this repo and due to me being a docker-noob:
Is it possible to add a startup service like sshd to the container?
The text was updated successfully, but these errors were encountered: