We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see ourdocumentation.
There was an error while loading.Please reload this page.
1 parent0ef7d0b commit1ba02f4Copy full SHA for 1ba02f4
dogfood/coder/main.tf
@@ -425,10 +425,16 @@ resource "docker_container" "workspace" {
425
# CPU limits are unnecessary since Docker will load balance automatically
426
memory=data.coder_workspace_owner.me.name=="code-asher"?65536:32768
427
runtime="sysbox-runc"
428
-# Ensure the workspace is given time to execute shutdown scripts.
429
-destroy_grace_seconds=60
430
-stop_timeout=60
+
+# Ensure the workspace is given time to:
+# - Execute shutdown scripts
431
+# - Stop the in workspace Docker daemon
432
+# - Stop the container, especially when using devcontainers,
433
+# deleting the overlay filesystem can take a while.
434
+destroy_grace_seconds=300
435
+stop_timeout=300
436
stop_signal="SIGINT"
437
438
env=[
439
"CODER_AGENT_TOKEN=${coder_agent.dev.token}",
440
"USE_CAP_NET_ADMIN=true",