Keep commands for cleaning up environment in one file.
This commit is contained in:
16
bin/clean.sh
Executable file
16
bin/clean.sh
Executable 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
|
Reference in New Issue
Block a user