Skip to content

Instantly share code, notes, and snippets.

@alferov
Last active July 24, 2023 08:33
Show Gist options
  • Save alferov/645fb70d4f8d4ed79c8791b56e6186aa to your computer and use it in GitHub Desktop.
Save alferov/645fb70d4f8d4ed79c8791b56e6186aa to your computer and use it in GitHub Desktop.
Remove all (untagged) images and containers from Docker
@dalmosantos
Copy link

docker container stop $(docker container ps -q)
docker container rm $(docker container ps -aq)
docker image rm $(docker image ls -fq dangling=true)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment