We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d6fc65a commit 8bc3277Copy full SHA for 8bc3277
dogfood/coder/main.tf
@@ -373,7 +373,14 @@ resource "coder_agent" "dev" {
373
#!/usr/bin/env bash
374
set -eux -o pipefail
375
376
- # Stop all running containers and prune the system to clean up /var/lib/docker.
+ # Stop all running containers and prune the system to clean up
377
+ # /var/lib/docker to prevent errors during workspace destroy.
378
+ #
379
+ # WARNING! This will remove:
380
+ # - all containers
381
+ # - all networks not used by at least one container
382
+ # - all images without at least one container associated to them
383
+ # - all build cache
384
docker ps -q | xargs docker stop
385
docker system prune -a
386
0 commit comments