Skip to content

Commit

Permalink
Merge pull request #28 from unclej84/master
Browse files Browse the repository at this point in the history
prune only images older than 24 hours
  • Loading branch information
BretFisher authored Dec 13, 2020
2 parents 1c176b4 + a9ecfee commit a652600
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion stack-prune.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ services:
image-prune:
<<: *default-opts
image: docker
command: sh -c "while true; do docker image prune -af; sleep 86400; done"
command: sh -c "while true; do docker image prune -af --filter \"until=24h\"; sleep 86400; done"
networks:
- bridge
volumes:
Expand Down

0 comments on commit a652600

Please sign in to comment.