Skip to content

Instantly share code, notes, and snippets.

@cameronelliott
Last active November 3, 2021 20:15
Show Gist options
  • Save cameronelliott/c820b1ec72fe69dd9f36d5b7ed911aff to your computer and use it in GitHub Desktop.
Save cameronelliott/c820b1ec72fe69dd9f36d5b7ed911aff to your computer and use it in GitHub Desktop.
Docker kill all, rm all containers, all images, for Fish shell
docker kill (docker ps -q)
docker rm (docker ps -a -q)
docker rmi (docker images -q)
# three commands above do
# stop all containers:
# remove all containers
# remove all docker images
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment