docker-cleanup.sh
· 164 B · Bash
原始檔案
# from: https://docs.docker.com/config/pruning/
# get used/available space
docker system df
# remove all images without a container associated
docker image prune -a
| 1 | # from: https://docs.docker.com/config/pruning/ |
| 2 | # get used/available space |
| 3 | docker system df |
| 4 | # remove all images without a container associated |
| 5 | docker image prune -a |