Sha256: 295603a190f59cd2ad877c0460fac089c1a47c997194f9f1e02c4e9c366169f8
Contents?: true
Size: 1.26 KB
Versions: 45
Compression:
Stored size: 1.26 KB
Contents
--- title: ufo docker clean reference: true --- ## Usage ufo docker clean IMAGE_NAME ## Description Clean up old images. Keeps a specified amount. 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 ## Options ``` [--keep=N] # Default: 3 [--tag-prefix=TAG_PREFIX] # Default: ufo ```
Version data entries
45 entries across 45 versions & 1 rubygems