Skip to content

Instantly share code, notes, and snippets.

@maxrodrigo
Created November 9, 2018 15:38
Show Gist options
  • Save maxrodrigo/4c656911f3ede55d8c3b967caf610ae0 to your computer and use it in GitHub Desktop.
Save maxrodrigo/4c656911f3ede55d8c3b967caf610ae0 to your computer and use it in GitHub Desktop.
Docker cleanup script
#!/bin/bash
docker rm -v $(docker ps -a -q -f status=exited)
docker rmi $(docker images -f "dangling=true" -q)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment