Skip to content

Commit

Permalink
burn docker enhancement
Browse files Browse the repository at this point in the history
  • Loading branch information
garris committed Feb 22, 2024
1 parent 9694582 commit 9147266
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions docker/burn-docker-builder.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
#!/usr/bin/env bash
echo starting a fire
set -e
set -o errexit

docker stop `docker ps -qa` > /dev/null 2>&1; ## Stop all running containers
docker buildx stop; ## Stop the buildx builder
docker system prune --all --force --volumes; ## Remove all volumes, images, and containers
docker buildx rm --all-inactive --force; ## Remove all buildx builders
docker buildx prune --all --force; ## Prune buildx builder caches

echo builders are burned

0 comments on commit 9147266

Please sign in to comment.