Skip to content

Commit

Permalink
Remove all images not used by containers on a weekly basis to prevent…
Browse files Browse the repository at this point in the history
… /var becoming to full
  • Loading branch information
aequitas authored and mxsasha committed Oct 9, 2024
1 parent 1601feb commit fdaa0eb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docker/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -1131,8 +1131,8 @@ configs:
content: |
#!/bin/sh
set -e
# remove unused images, force to skip confirm prompt
docker image prune --force
# remove unused images, --all to remove images not used by containers, --force to skip confirm prompt
docker image prune --all --force
networks:
# disable default network
Expand Down

0 comments on commit fdaa0eb

Please sign in to comment.