soscmd/soscmd-prune-docker
2023-07-18 14:33:30 +02:00

11 lines
334 B
Bash
Executable file

#!/bin/bash
echo ":: Pruning docker containers"
docker container prune --force
echo ":: Pruning docker images"
docker image prune --force
echo ":: Pruning docker volumes"
docker volume prune --force
echo ":: Pruning docker networks"
docker network prune --force
echo ":: Adding required docker networks"
docker network create runner0