Prune Swarm nodes¶
version: "3.2"
services:
prune-nodes:
image: docker
command: ["docker", "system", "prune", "-f"]
volumes:
- "/var/run/docker.sock:/var/run/docker.sock"
deploy:
mode: global
labels:
- "swarm.cronjob.enable=true"
- "swarm.cronjob.schedule=0 */5 * * * *"
- "swarm.cronjob.skip-running=false"
restart_policy:
condition: none
Last update:
2020-09-21 23:07:39
Created: 2019-07-18 00:02:26
Created: 2019-07-18 00:02:26