Skip to content

Latest commit

 

History

History
40 lines (28 loc) · 846 Bytes

README.md

File metadata and controls

40 lines (28 loc) · 846 Bytes

Docker + Cleaner = DockCleaner

Automatically cleans your unused docker images, volumes, containers.

Overview

DockCleaner will clean up your unused docker images,

Docker container

Dockupdater is deployed via docker image in a standalone container like so:

docker container run \
    --name="dock-cleaner" \
    -d \
    --restart unless-stopped \
    -v /var/run/docker.sock:/var/run/docker.sock \
    lithasan/dockcleaner:latest

This is image is compatible for amd64, arm32, and arm64 CPU architectures

Docker swarm (service)

DockCleaner can be deploy on a service like this:

version: "3.6"

services:
  dockupdater:
    image: lithasan/dockcleaner:latest
    deploy:
      placement:
        constraints:
          - node.role == manager

Dockupdater needs to run on a manager node