Sign inSign up

xjokay/prune

By xjokay

•Updated 6 months ago
Archived

Multi-platform Docker image for Docker prune.

Image
6

100K+

xjokay/prune repository overview

⁠Docker prune

Multi-platform Docker image for Docker prune⁠.

⁠Information

⁠Usage

docker pull docker.io/xjokay/prune:latest
⁠Supported tags
TagDescription
latestLatest⁠ release
{release}Specific release version, see available releases⁠
⁠Exposed Ports

None

⁠Volumes
DirectoryDescription
/var/run/docker.sockNeeds to be mounted in order to be able to prune objects.
⁠Configuration
ENV fieldReq. / Opt.Description
INTERVALOptionalInterval of pruning, default is 86400 seconds (24h).
OBJECTSOptionalObjects to be pruned, default is container volume image. Additionally network can be added if desired (see samples).
OPTIONSOptionalAdditional options⁠ (default: none), e.g. --filter until=24h for objects created more than 1 day ago.

⁠Samples

⁠docker-compose
services:
  app:
    image: docker.io/xjokay/prune:latest
    volumes:
      - /var/run/docker.sock:/var/run/docker.sock
    environment:
      - INTERVAL=86400
      - "OBJECTS=container volume image network"
      - "OPTIONS=--filter until=24h"
    restart: always
⁠docker run
docker run -d \
  -v /var/run/docker.sock:/var/run/docker.sock \
  -e INTERVAL=86400 \
  -e "OBJECTS=container volume image network" \
  -e "OPTIONS=--filter until=24h" \
  docker.io/xjokay/prune:latest

Tag summary

Content type

Image

Digest

sha256:a317b71cb…

Size

62.2 MB

Last updated

6 months ago

docker pull xjokay/prune