From 80f7e5b3dc02b89cf5646c05a3bf84f5ef2b63cc Mon Sep 17 00:00:00 2001 From: Jimmi Dyson Date: Wed, 14 Sep 2022 14:15:24 +0100 Subject: [PATCH] fix: Ensure that image IDs do not change on import (#185) --- cmd/mindthegap/importcmd/imagebundle/image_bundle.go | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/cmd/mindthegap/importcmd/imagebundle/image_bundle.go b/cmd/mindthegap/importcmd/imagebundle/image_bundle.go index 56cb6cd6..4372ef8a 100644 --- a/cmd/mindthegap/importcmd/imagebundle/image_bundle.go +++ b/cmd/mindthegap/importcmd/imagebundle/image_bundle.go @@ -85,12 +85,11 @@ func NewCommand(out output.Output) *cobra.Command { out.StartOperation(fmt.Sprintf("Importing %s", destImageName)) - exportTarball := filepath.Join(ociExportsTempDir, "oci-export.tar") + exportTarball := filepath.Join(ociExportsTempDir, "docker-archive.tar") skopeoStdout, skopeoStderr, err := skopeoRunner.Copy(context.TODO(), fmt.Sprintf("docker://%s", srcImageName), - fmt.Sprintf("oci-archive:%s:%s", exportTarball, destImageName), - skopeo.All(), + fmt.Sprintf("docker-archive:%s:%s", exportTarball, destImageName), skopeo.DisableSrcTLSVerify(), ) if err != nil {