Keep commands for cleaning up environment in one file.

This commit is contained in:
2023-08-21 12:47:35 -07:00
parent 319f2e35b7
commit 585ea82a88

16
bin/clean.sh Executable file
View File

@@ -0,0 +1,16 @@
#!/bin/bash
# 2023-08-21 Hyperling
# Clean all unused images and containers.
# https://docs.docker.com/config/pruning/
# Very helpful during development, nice in a long-running production as well.
# usage: clean.sh
docker image prune -a
docker container prune
docker volume prune
docker network prune
exit 0