From d94c2b06f9800d635f3cb05b4a6c67145aa1ba09 Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Mon, 11 Apr 2016 17:24:08 +0200 Subject: machinectl: add new "machinectl clean" command This new command removes all, or all hidden container images that have been downloaded. --- man/machinectl.xml | 32 ++++++++++++++++++++++++++++---- 1 file changed, 28 insertions(+), 4 deletions(-) (limited to 'man/machinectl.xml') diff --git a/man/machinectl.xml b/man/machinectl.xml index cee4bb72ce..a77d2419af 100644 --- a/man/machinectl.xml +++ b/man/machinectl.xml @@ -133,7 +133,9 @@ When listing VM or container images, do not suppress images beginning in a dot character - (.). + (.). + + When cleaning VM or container images, remove all images, not just hidden ones. @@ -217,9 +219,11 @@ When used with bind, applies - a read-only bind mount. - + a read-only bind mount. + When used with clone, import-raw or import-tar a + read-only container or VM image is created. + @@ -599,7 +603,10 @@ all other settings that could identify the instance unmodified. The original image and the cloned copy will hence share these credentials, and it might be necessary to manually - change them in the copy. + change them in the copy. + + If combined with the switch a read-only cloned image is + created. @@ -660,6 +667,23 @@ itself. + + clean + + Remove hidden VM or container images (or all). This command removes all hidden machine images + from /var/lib/machines, i.e. those whose name begins with a dot. Use machinectl + list-images --all to see a list of all machine images, including the hidden ones. + + When combined with the switch removes all images, not just hidden ones. This + command effectively empties /var/lib/machines. + + Note that commands such as machinectl pull-tar or machinectl + pull-raw usually create hidden, read-only, unmodified machine images from the downloaded image first, + before cloning a writable working copy of it, in order to avoid duplicate downloads in case of images that are + reused multiple times. Use machinectl clean to remove old, hidden images created this + way. + + Image Transfer Commands -- cgit v1.2.3-54-g00ecf