I found
https://github.com/containers/skopeo/pull/1032 which pointed me
to buildah and with that I found some steps that worked for me:
skopeo --override-arch amd64 copy
docker://docker.io/library/busybox:1.32
containers-storage:busybox:1.32-amd64
skopeo --override-arch s390x copy
docker://docker.io/library/busybox:1.32
containers-storage:busybox:1.32-s390x
buildah manifest create busybox-multi:1.32
buildah manifest add busybox-multi:1.32
containers-storage:docker.io/library/busybox:1.32-amd64
buildah manifest add busybox-multi:1.32
containers-storage:docker.io/library/busybox:1.32-s390x
buildah manifest push --all busybox-multi:1.32
docker://my-registry.com/busybox-multi:1.32
still feels a bit complicated. when using the docker transport for the
"add" calls (buildah manifest add --arch s390x busybox-multi:1.32
docker://docker.io/library/busybox:1.32) things didn't work for me as
the manifest list always ended up with just the last image pulled.
Since podman has the same commands I thought it should work in the same
way but it didn't work more me.
After that I tried to export the multi arch image as an oci-archive.
That works if the source is using the transport "docker" but failed if
using "containers-storage".
On 12/11/20 7:21 PM, Hendrik Haddorp wrote:
Hi,
I'm trying to create a manifest list, so a multi arch image. I started
by using skopeo to copy busybox:1.32 for two different architectures to
my local container storage. I gave them locally different tags. After
that I tried to create a manifest list using "podman manifest list". The
first issue I noticed is that
http://docs.podman.io/en/latest/markdown/podman-manifest-create.1.html
shows a different syntax to what I get in podman 2.1.1 as I can not
specify more then one image in the command. Anyhow, so I first create
the list with the first image and then use "podman manifest add" to add
the second image. Doing a "podman images" command I see that my manifest
list image size increased a bit but is still just a few KB. pushing the
manifest list now results in a failure. Should those commands work or am
I missing something? I would also have expected that I can create the
manifest list with skopeo, ideally as part of a copy call, but I didn't
find anything on that in skopeo. Is there a better approach for
combining multiple images to one?
thanks,
Hendrik
_______________________________________________
Podman mailing list -- podman(a)lists.podman.io
To unsubscribe send an email to podman-leave(a)lists.podman.io