Skip to content

Instantly share code, notes, and snippets.

@zsoumya
Last active June 16, 2021 09:41
Show Gist options
  • Save zsoumya/b3263559a0f5722486a263d7384017f0 to your computer and use it in GitHub Desktop.
Save zsoumya/b3263559a0f5722486a263d7384017f0 to your computer and use it in GitHub Desktop.
Docker Cheat Sheet

Docker Cheat Sheet

Stop all containers

docker container stop $(docker container ls -aq)

Remove all containers

docker container rm $(docker container ls -aq)

Remove all images

docker image rm $(docker image ls -aq)

Prune system

docker system prune -af --volumnes

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