Sha256: ff6c9c140f5526a8703c28407ecc150b140ba276d9b49e951e340fdd74de91cd

Contents?: true

Size: 972 Bytes

Versions: 45

Compression:

Stored size: 972 Bytes

Contents

Ufo comes with a handy command to clean up old images that ufo generates. Ufo only deletes images from the docker daemon and does not remove any images from any registry.  To use it you pass the base portion of the image name to the command.

Say you currently have these images:

    tongueroo/demo-ufo:ufo-2016-10-15T19-29-06-88071f5
    tongueroo/demo-ufo:ufo-2016-10-16T19-29-06-88071f5
    tongueroo/demo-ufo:ufo-2016-10-17T19-29-06-88071f5
    tongueroo/demo-ufo:ufo-2016-10-18T19-29-06-88071f5

To clean them up and keep the 3 more recent:

    $ ufo docker clean tongueroo/demo-ufo
    Cleaning up docker images...
    Running: docker rmi tongueroo/demo-ufo:ufo-2016-10-15T19-29-06-88071f5

This will remove tongueroo/demo-ufo:ufo-2016-10-15T19-29-06-88071f5.

By default the clean command keeps the most 3 recent docker images. If you would like to override this setting you can use the `--keep` option. Example:

    ufo docker clean tongueroo/demo-ufo --keep 5

Version data entries

45 entries across 45 versions & 1 rubygems

Version Path
ufo-5.0.7 lib/ufo/help/docker/clean.md
ufo-5.0.6 lib/ufo/help/docker/clean.md
ufo-5.0.5 lib/ufo/help/docker/clean.md
ufo-5.0.4 lib/ufo/help/docker/clean.md
ufo-5.0.3 lib/ufo/help/docker/clean.md
ufo-5.0.2 lib/ufo/help/docker/clean.md
ufo-5.0.1 lib/ufo/help/docker/clean.md
ufo-5.0.0 lib/ufo/help/docker/clean.md
ufo-4.6.3 lib/ufo/help/docker/clean.md
ufo-4.6.2 lib/ufo/help/docker/clean.md
ufo-4.6.1 lib/ufo/help/docker/clean.md
ufo-4.6.0 lib/ufo/help/docker/clean.md
ufo-4.5.11 lib/ufo/help/docker/clean.md
ufo-4.5.10 lib/ufo/help/docker/clean.md
ufo-4.5.9 lib/ufo/help/docker/clean.md
ufo-4.5.8 lib/ufo/help/docker/clean.md
ufo-4.5.7 lib/ufo/help/docker/clean.md
ufo-4.5.6 lib/ufo/help/docker/clean.md
ufo-4.5.5 lib/ufo/help/docker/clean.md
ufo-4.5.4 lib/ufo/help/docker/clean.md