You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
gosu is https://github.com/tianon/gosu, "a simple tool grown out of the simple fact that su and sudo have very strange and often annoying TTY and signal-forwarding behavior." We should be able to use exec gosu redis redis-server /etc/redis/redis.conf.
…when Docker containers are stopped. Symptoms: data loss;
[container] exited with code 137
when stopping foreground container (explanation).Redis
The entrypoint script should use
exec
so that the child process receives signals:kobo-docker/redis/entrypoint.sh
Line 37 in feb2fd6
In this case, however,
exec su
is not enough, becausesu
eats the signals. When stopping a foreground container, the following is logged:Consulting the official entrypoint show that they use
exec gosu redis "$0" "$@"
:https://github.com/docker-library/redis/blob/792574dfa561c5c9e8b6bcc48aad76637b49e96c/3.2/docker-entrypoint.sh#L13
gosu
is https://github.com/tianon/gosu, "a simple tool grown out of the simple fact thatsu
andsudo
have very strange and often annoying TTY and signal-forwarding behavior." We should be able to useexec gosu redis redis-server /etc/redis/redis.conf
.Postgres
It may be enough to prepend
exec
:kobo-docker/postgres/entrypoint.sh
Line 50 in feb2fd6
Mongo
Same as Postgres:
kobo-docker/mongo/entrypoint.sh
Line 13 in feb2fd6
The text was updated successfully, but these errors were encountered: