Skip to content

LitHaxor/DockCleaner

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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