Skip to content

stephanlindauer/docker-clean-up

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 

Repository files navigation

docker-clean-up

Standalone:

Build:

docker build -t docker-clean-up .

Run:

docker run \
-v /var/run/docker.sock:/var/run/docker.sock:rw \
-e CRONTAB="0 2 * * 0" \
docker-clean-up

Kubernetes DaemonSet:

kubectl apply -f - << EOF
apiVersion: extensions/v1beta1
kind: DaemonSet
metadata:
  labels:
    name: docker-clean-up
  name: docker-clean-up
spec:
  template:
    metadata:
      labels:
        app: docker-clean-up
    spec:
      volumes:
        - name: docker-socket
          hostPath:
            path: /var/run/docker.sock
      containers:
        - image: stephanlindauer/docker-clean-up
          name: docker-clean-up
          env:
            - name: CRONTAB
              value: "0 2 * * 0"
          volumeMounts:
            - mountPath: /var/run/docker.sock
              name: docker-socket
EOF

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages