Created
April 22, 2019 14:12
-
-
Save nicobytes/243760f9a1af798e8d7bf8531a1f6c65 to your computer and use it in GitHub Desktop.
Create service for docker-cleanup in docker swarm
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
docker service create -d \ | |
-e CLEAN_PERIOD=900 \ | |
-e DELAY_TIME=600 \ | |
--log-driver json-file \ | |
--log-opt max-size=1m \ | |
--log-opt max-file=2 \ | |
--name=cleanup \ | |
--mode global \ | |
--mount type=bind,source=/var/run/docker.sock,target=/var/run/docker.sock \ | |
meltwater/docker-cleanup |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment