mirror of
https://github.com/coder/coder.git
synced 2025-07-13 21:36:50 +00:00
fix(dogfood/coder): increase in-container docker daemon shutdown timeout (#17617)
The default is 10 seconds and will not successfully clean up large devcontainers inside the workspace. Follow-up to #17528
This commit is contained in:
committed by
GitHub
parent
650a48c210
commit
fe4c4122c9
@ -353,6 +353,10 @@ resource "coder_agent" "dev" {
|
||||
# Allow synchronization between scripts.
|
||||
trap 'touch /tmp/.coder-startup-script.done' EXIT
|
||||
|
||||
# Increase the shutdown timeout of the docker service for improved cleanup.
|
||||
# The 240 was picked as it's lower than the 300 seconds we set for the
|
||||
# container shutdown grace period.
|
||||
sudo sh -c 'jq ". += {\"shutdown-timeout\": 240}" /etc/docker/daemon.json > /tmp/daemon.json.new && mv /tmp/daemon.json.new /etc/docker/daemon.json'
|
||||
# Start Docker service
|
||||
sudo service docker start
|
||||
# Install playwright dependencies
|
||||
|
Reference in New Issue
Block a user