Skip to content

Instantly share code, notes, and snippets.

@kbendick
Last active July 30, 2020 06:16
Show Gist options
  • Save kbendick/cc343638002bee31dfc1bfbaffa55e27 to your computer and use it in GitHub Desktop.
Save kbendick/cc343638002bee31dfc1bfbaffa55e27 to your computer and use it in GitHub Desktop.
Stop and remove all docker containers
# Ensure that the docker engine is running
docker stop $(docker ps -a -q)
docker rm $(docker ps -a -q)
# Clean up all images
docker rm $(docker images -q)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment