Public | Automated Build

Last pushed: a year ago
Short Description
Utility for cleaning up docker images.
Full Description

docker cleanup

A utility to make it easier to delete Docker images based on image name and age.

Build

Make sure you have Docker installed, then

$ make

Run

Run as

$ docker run --rm -v /var/run/docker.sock:/var/run/docker.sock \
  docker-cleanup

Usage

$ docker run -i --rm -v /var/run/docker.sock:/var/run/docker.sock docker-cleanup --help
Usage: docker-cleanup [options]

Clean up docker images

Options:
    -h, --help                       Show command line help
        --older-than AGE             Delete images older than the given ActiveSupport-style duration (e.g. 2.weeks, 4.days)
        --match REGEXP               Only images with names matching the given Ruby regexp will be deleted
        --dry-run                    Show which images would get cleaned up
        --log-level LEVEL            Set the logging level
                                     (debug|info|warn|error|fatal)
                                     (Default: info)

Contributing

  1. Fork it ( https://github.com/[my-github-username]/docker-cleanup/fork )
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create a new Pull Request
Docker Pull Command
Owner
conjurinc

Comments (0)