From 9c6cbc94c741deb4ce644e583a2ede80d8d465d7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miloslav=20Trma=C4=8D?= Date: Mon, 5 Dec 2022 22:20:39 +0100 Subject: [PATCH] Add an example for creating a docker-archive file MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ... with the image correctly tagged. I also snuck a warning against `docker-archive:` in there. Signed-off-by: Miloslav Trmač --- docs/skopeo-copy.1.md | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/docs/skopeo-copy.1.md b/docs/skopeo-copy.1.md index fa698922..f973bd3a 100644 --- a/docs/skopeo-copy.1.md +++ b/docs/skopeo-copy.1.md @@ -228,6 +228,11 @@ $ ls /var/lib/images/busybox/* /tmp/busybox/8ddc19f16526912237dd8af81971d5e4dd0587907234be2b83e249518d5b673f.tar ``` +To create an archive consumable by `docker load` (but note that using a registry is almost always more efficient): +```sh +$ skopeo copy docker://busybox:latest docker-archive:archive-file.tar:busybox:latest +``` + To copy and sign an image: ```sh