Skip to content

Commit

Permalink
fix: Ensure that image IDs do not change on import (#185)
Browse files Browse the repository at this point in the history
  • Loading branch information
jimmidyson authored Sep 14, 2022
1 parent da08e73 commit 80f7e5b
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions cmd/mindthegap/importcmd/imagebundle/image_bundle.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 80f7e5b

Please sign in to comment.