Comments (2)
So by default docker is under this rule
Docker has limited patience when it comes to stopping containers.
There’s a timeout, which is 10 seconds by default for each container.
If even one of your containers does not respond to SIGTERM signals, Docker will wait for 10 seconds at least.
There is a flag at least for docker where timeouts can be lowered, if you need a shorter time to stop them you should look into that one and if docker-compose supports that flag in the config.
But the core issue is bash and that this container runs a bash script that runs all redis servers.
Normally, bash will ignore any signals while a child process is executing.
Starting the server with & will background it into the shell's job control system,
with $! holding the server's PID (to be used with wait and kill).
Calling wait will then wait for the job with the specified PID (the server) to finish, or for any signals to be fired.
I guess adding in a SIGTERM trap should not be that difficult to exit out the container more correct
from docker-redis-cluster.
I just corrected this in my own usage using dumb-init
and exec
ing the tail
. Seemed to work well.
from docker-redis-cluster.
Related Issues (20)
- PUBLIC NOTICE: Splitting cluster and sentinel into two separate docker images
- Rewrite travis-ci into github actions
- Old docker hub tags missing over night? HOT 1
- redis 'ready' event is not triggered HOT 3
- how to set every node password HOT 1
- redis.tmpl is missing
- Delete redis data after make down HOT 1
- Image for Apple M1 docker HOT 4
- Can I run a Redis cluster without a ".conf "configuration file like Mariadb Galera and just configure it all in the docker-comemater.yml file? HOT 1
- Cannot redirect when connecting from remote HOT 3
- Wrong redis version used HOT 3
- Images before < 6.x have been dropped from registry HOT 1
- Podman not supported HOT 5
- Image with tag `latest` not latest HOT 1
- Latest update has caused broken connection HOT 8
- Version 7+ cannot handle non-localhost connections as protected mode is on and authentication is not supported HOT 8
- Docker image with "latest" tag is not actually latest HOT 2
- Error when using jedis and test container for java HOT 1
- multiple critical CVEs in the image HOT 4
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 docker-redis-cluster.