Skip to content

Instantly share code, notes, and snippets.

View SunlightJoe's full-sized avatar

Joe Hillenbrand SunlightJoe

View GitHub Profile
#!/bin/bash -x
# Docker sometimes decides to not clean up correctly,
# and it will leave stuff behind. This can block rebuilds and cleans.
# Sometimes the simplest solution is to burn it all down and start over.
docker ps -aq | xargs -r docker stop
docker ps -aq | xargs -r docker rm
docker network prune -f