Closed adamantike closed 3 weeks ago
Use tini [1] as the container entrypoint to ensure that the container process is properly reaped when the container is stopped.
tini
This is needed as the main container command is a shell script.
A simple way to test this change is to:
docker compose up
Ctrl+C
Without tini, the container takes a few seconds to stop, and it makes one CPU core to be used at 100% during that time.
[1] https://github.com/krallin/tini
Use
tini
[1] as the container entrypoint to ensure that the container process is properly reaped when the container is stopped.This is needed as the main container command is a shell script.
A simple way to test this change is to:
docker compose up
.Ctrl+C
.Without
tini
, the container takes a few seconds to stop, and it makes one CPU core to be used at 100% during that time.[1] https://github.com/krallin/tini