Skip to content

Instantly share code, notes, and snippets.

@paulbrodner
Created December 6, 2018 13:08
Show Gist options
  • Select an option

  • Save paulbrodner/4a31ed393cf5e52f46bd9c8b95d5f0ab to your computer and use it in GitHub Desktop.

Select an option

Save paulbrodner/4a31ed393cf5e52f46bd9c8b95d5f0ab to your computer and use it in GitHub Desktop.
clean environment of all containers removing dangling volumes as well
# stop all containers
docker kill $(docker ps -q)
# kill all dangling volumes
docker volume ls -qf dangling=true | xargs -r docker volume rm
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment