dockette / adminer

:whale: Tiniest boxed dockerized Adminer (MySQL, PostgreSQL, SQLite, Mongo, Oracle) Dockerfiles
MIT License
87 stars 29 forks source link

the container is not shutting down properly #30

Closed keksa closed 4 years ago

keksa commented 4 years ago

The PID 1 process is php and it can't handle signals properly, something like https://github.com/Yelp/dumb-init should be used as init process.

Currently the container takes minimum of 10 seconds to shut down when stopped by docker-compose. This is because the default timeout for SIGTERM processing is 10 seconds and SIGKILL is sent afterwards.

You can read more about this issue at https://docs.docker.com/compose/faq/#why-do-my-services-take-10-seconds-to-recreate-or-stop and https://github.com/Yelp/dumb-init#why-you-need-an-init-system

keksa commented 4 years ago

This is probably the cause of https://github.com/dockette/adminer/issues/8