soscmd/soscmd-prune-docker
2024-03-15 02:20:45 +01:00

9 lines
240 B
Bash
Executable file

#!/bin/bash
echo ":: Pruning docker containers"
docker container prune
echo ":: Pruning docker images"
docker image prune --all
echo ":: Pruning docker networks"
docker network prune
echo ":: Pruning docker build cache"
docker buildx prune