Comments (4)
In what scenario do you need to stop and start this container when you can simply recreate it (after updating sftp-users.conf)?
from sftp.
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 docker-compose up -d
.
But you are right, I should be able to recreate this container without loosing anything!
from sftp.
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 sftp-users.conf
.
Here is my docker-compose.yml
:
version: '2'
services:
sftp:
image: atmoz/sftp
ports:
- "2222:22"
volumes:
- ./sftp-users.conf:/etc/sftp-users.conf:ro
- /srv/docker/sftp:/home
Using nginx image, docker compose recreates nginx container when I change config file... but it does not with sftp image :(
nginx:
image: nginx
volumes:
- ./nginx/my-app.conf:/etc/nginx/conf.d/my-app.conf:ro
- ./nginx/htpasswd:/auth/htpasswd:ro
Any idea?
from sftp.
docker-compose up -d --force-recreate
should recreate containers. Specify your sftp container name, to only recreate that.
from sftp.
Related Issues (20)
- Fails to start if public key directory is empty HOT 1
- Capture SFTP clients' public IP addresses HOT 1
- Support ARM64 docker environment HOT 3
- unable to connect no matter what HOT 2
- Does atmoz / sftp support 2 factor authentication with ssh public key and password? HOT 1
- Failed to start the container in AWS code build
- I'm not able to specify the size of the volume HOT 1
- No connection if users binded to UID and GID of the root (0:0) HOT 3
- Support manual homedir HOT 1
- Need help with getting pam-pgsql working HOT 3
- Possibility to disable ChrootDirectory on sshd_config HOT 4
- Create sub directory fail
- curl: (67) Authentication failure
- Container fails to start, exits with code 126 HOT 3
- memory leak on kubernetes HOT 2
- Add support for hpn-ssh HOT 1
- Always use `>>` instead of `>` when appending to a file
- If you are running in k8s and the process stops after authentication with the CPU reaching 100%, add this line to your k8s yaml. HOT 3
- Daily rebuilds triggers restarts via watchtower, even if unnecessary
- Timeouts when connecting HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from sftp.