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
Add new user to existing container #34
Comments
In what scenario do you need to stop and start this container when you can simply recreate it (after updating sftp-users.conf)? |
When using this image with Docker Compose : if I add users to my config, I need to manually destroy the container... I can't do just |
In theory, you are right : Docker compose should recreates container when config changed (it does this for nginx for example). I don't understand why docker compose does not recreate the container automatically when I add new users to Here is my
Using nginx image, docker compose recreates nginx container when I change config file... but it does not with sftp image :(
Any idea? |
|
Is there a way to add new user to
/etc/sftp-users.conf
once the container already exists?It seems that users are created only at first run:
https://github.com/atmoz/sftp/blob/master/entrypoint#L87-L121
We could imagine that users are created on each container start:
The text was updated successfully, but these errors were encountered: