Skip to content

Commit

Permalink
keep prune from making overlay
Browse files Browse the repository at this point in the history
  • Loading branch information
BretFisher committed Feb 4, 2019
1 parent a3620fd commit e0178bb
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion stack-prune.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
version: '3.1'

services:
images:
image-prune:
image: docker
command: sh -c "while true; do docker image prune -af; sleep 86400; done"
networks:
- bridge
volumes:
- /var/run/docker.sock:/var/run/docker.sock
deploy:
Expand All @@ -12,3 +14,8 @@ services:
# driver: "gelf"
# options:
# gelf-address: "tcp://127.0.0.1:5000"

networks:
bridge:
external: true
name: bridge

0 comments on commit e0178bb

Please sign in to comment.