Skip to content

Instantly share code, notes, and snippets.

@RafalSladek
Created August 30, 2017 23:30
Show Gist options
  • Select an option

  • Save RafalSladek/61eef630868af743a8c1a673bf5cf71a to your computer and use it in GitHub Desktop.

Select an option

Save RafalSladek/61eef630868af743a8c1a673bf5cf71a to your computer and use it in GitHub Desktop.
remove all containers and delete all images
#!/bin/fish
function cleanUpDocker
#Note: containers can also be removed in a non graceful way:
docker container rm -f (docker container ls -aq)
docker image rm -f (docker image ls -q)
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment