This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/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 |