You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We create an image dir pulling multiple images in a single command (so that layers can be shared). Howover, this
image dir cannot be pushed using crane push, it fails with:
Error: HEAD https://index.docker.io/v2/library/localhost/manifests/sha256:2df55d034b4546d5cec977fba60c7e47fec044e8e5f19855177ece6eba5e04cd: unexpected status code 401 Unauthorized (HEAD responses have no body, use GET for details)
To Reproduce
Here is a transcript of commands
Create an image dir with multiple images in a single crane pull command:
Now if we try to push this image bundle to a local docker registry it fails. (localhost:5003 is local docker registry endpoint). Using --index option to mention that we have multiple images.
$ crane push /tmp/images-oci/ --index localhost:5003
Error: HEAD https://index.docker.io/v2/library/localhost/manifests/sha256:2df55d034b4546d5cec977fba60c7e47fec044e8e5f19855177ece6eba5e04cd: unexpected status code 401 Unauthorized (HEAD responses have no body, use GET for details)
Expected behavior
We expect both image1 and image2 to be pushed to the local docker registry with digests and tags preserved.
Additional context
None.
Output of crane version
Latest version tested. (tested from version 0.7.0 onwards)
$ /usr/local/bin/crane version
0.10.0
Registry used (e.g., GCR, ECR, Quay)
Local docker registry, reachable in localhost:5003
$ docker container list
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
5d28306097f3 registry:2 "/entrypoint.sh /etc…" 3 weeks ago Up 3 seconds 0.0.0.0:5003->5000/tcp, :::5003->5000/tcp vsenthil-registry
The text was updated successfully, but these errors were encountered:
I got the same problem here.
There is an air-gap environment I would like to import some images. It would be nice to be able to pack all the images with all architectures of the manifests I want into a single tarball file, and then import images from that tarball.
I managed to get the initial part done with crane, like the following (it seems to be the only way to export multi arches of several images):
This issue is stale because it has been open for 90 days with no
activity. It will automatically close after 30 more days of
inactivity. Keep fresh with the 'lifecycle/frozen' label.
Describe the bug
We create an image dir pulling multiple images in a single command (so that layers can be shared). Howover, this
image dir cannot be pushed using
crane push
, it fails with:To Reproduce
Here is a transcript of commands
crane pull
command:--index
option to mention that we have multiple images.Expected behavior
We expect both
image1
andimage2
to be pushed to the local docker registry with digests and tags preserved.Additional context
None.
crane version
Latest version tested. (tested from version 0.7.0 onwards)
Local docker registry, reachable in
localhost:5003
The text was updated successfully, but these errors were encountered: