Skip to content

Instantly share code, notes, and snippets.

@moxley
Created November 30, 2017 19:17
Show Gist options
  • Save moxley/2a9a5a52b65092351f7024500eae8b38 to your computer and use it in GitHub Desktop.
Save moxley/2a9a5a52b65092351f7024500eae8b38 to your computer and use it in GitHub Desktop.
Kill all the docker artifacts
function fuckdocker() {
make stop
docker kill `docker ps -a -q`
docker rm `docker ps -a -q`
docker rmi -f `docker images -q`
docker volume rm -f `docker volume ls -q`
docker network rm -f `docker network ls -q`
docker service rm `docker service ls -q`
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment