Skip to content

Commit

Permalink
Update stack-prune.yml
Browse files Browse the repository at this point in the history
Add filter for prune command to prune only older than 24h
  • Loading branch information
unclej84 authored Dec 10, 2020
1 parent 1c176b4 commit a9ecfee
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 a9ecfee

Please sign in to comment.