tutum-cleanup

command module
v0.16.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 19, 2015 License: Apache-2.0 Imports: 10 Imported by: 0

README

tutum/image-cleanup

docker run -d \
  --privileged \
  -v /var/run:/var/run:rw \
  -v /var/lib/docker:/var/lib/docker:rw \
  -e DOCKER_ROOT_DIR="/var/lib/docker/" \
  -e IMAGE_CLEAN_INTERVAL=1 \
  -e IMAGE_CLEAN_DELAYED=1800 \
  -e VOLUME_CLEAN_INTERVAL=1800 \
  -e IMAGE_LOCKED="ubuntu:trusty, tutum/curl:trusty" \
  tutum/cleanup

Arguments

DOCKER_ROOT_DIR         the root path of docker lib, "/var/lib/docker/" by default
IMAGE_CLEAN_INTERVAL    how many seconds to clean the images, 1 by default.
IMAGE_CLEAN_DELAYED     how many seconds delay to clean docker images, 1800 by default.
VOLUME_CLEAN_INTERVAL   how many seconds to clean docker volumes, 1800 by default.
IMAGE_LOCKED            A list of Images that will not be cleaned by this container, separated by ","

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL