Skip to content

Commit

Permalink
added docker_nuke_all_containers_and_images.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
br-cpvc committed Mar 31, 2023
1 parent 8460033 commit 4b1ceb9
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions docker_nuke_all_containers_and_images.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
#!/usr/bin/env bash
# from: https://blog.baudson.de/blog/stop-and-remove-all-docker-containers-and-images
echo 'docker ps -aq'
echo 'docker stop $(docker ps -aq)'
echo 'docker rm $(docker ps -aq)'
echo 'docker rmi $(docker images -q)'
echo docker image prune
echo docker image prune -a

0 comments on commit 4b1ceb9

Please sign in to comment.