Skip to content

Commit

Permalink
Fix slow shutdown for the Grafana container (#5746)
Browse files Browse the repository at this point in the history
The root process of the container is `/bin/sh`, which ignores the
initial `SIGTERM` that Docker sends. So Docker has to wait 10 seconds
and then kill everything with `SIGKILL`.

Make Grafana itself the root process instead. Grafana handles the
`SIGTERM` and shuts down quickly.
  • Loading branch information
SpecLad authored Feb 21, 2023
1 parent 4fc494f commit 40931e7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -319,7 +319,7 @@ services:
path: /var/lib/grafana/dashboards
foldersFromFilesStructure: true
EOF
/run.sh
exec /run.sh
networks:
cvat:
aliases:
Expand Down

0 comments on commit 40931e7

Please sign in to comment.