Skip to content

Instantly share code, notes, and snippets.

@marc-hanheide
Created October 7, 2019 20:35
Show Gist options
  • Select an option

  • Save marc-hanheide/41d6a9b834eff64f76d91313e074f487 to your computer and use it in GitHub Desktop.

Select an option

Save marc-hanheide/41d6a9b834eff64f76d91313e074f487 to your computer and use it in GitHub Desktop.
Purge all docker resources (legacy)
# dangerous: removes all containers:
docker ps -aq --no-trunc | xargs docker rm
docker rmi $(docker images --filter "dangling=true" -q --no-trunc)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment