From c750be0107befd330cdb857ea44b1e4ce7547fc5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miloslav=20Trma=C4=8D?= Date: Sat, 8 Aug 2020 04:22:24 +0200 Subject: [PATCH] Use an inter-registry copy as the example for (skopeo copy) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit because that's what users are looking for, and instead of using a containers-storage: source, which might not even work all that well with all the automatic defaults Podman sets up. Signed-off-by: Miloslav Trmač --- cmd/skopeo/copy.go | 2 +- docs/skopeo-copy.1.md | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/cmd/skopeo/copy.go b/cmd/skopeo/copy.go index 933b2709..7c1ecce1 100644 --- a/cmd/skopeo/copy.go +++ b/cmd/skopeo/copy.go @@ -55,7 +55,7 @@ Supported transports: See skopeo(1) section "IMAGE NAMES" for the expected format `, strings.Join(transports.ListNames(), ", ")), RunE: commandAction(opts.run), - Example: `skopeo copy --sign-by dev@example.com container-storage:example/busybox:streaming docker://example/busybox:gold`, + Example: `skopeo copy docker://quay.io/skopeo/stable:latest docker://registry.example.com/skopeo:latest`, } adjustUsage(cmd) flags := cmd.Flags() diff --git a/docs/skopeo-copy.1.md b/docs/skopeo-copy.1.md index ac4b5187..43385a88 100644 --- a/docs/skopeo-copy.1.md +++ b/docs/skopeo-copy.1.md @@ -83,6 +83,11 @@ Existing signatures, if any, are preserved as well. ## EXAMPLES +To just copy an image from one registry to another: +```sh +$ skopeo copy docker://quay.io/skopeo/stable:latest docker://registry.example.com/skopeo:latest +``` + To copy the layers of the docker.io busybox image to a local directory: ```sh $ mkdir -p /var/lib/images/busybox