Skip to content

Fails to pull a public image from: ghcr.io/matejvasek/builder-ubi8-base:latest #30

Closed
@cmoulliard

Description

@cmoulliard

Issue

I can pull an image using podman pull ghcr.io/matejvasek/builder-ubi8-base from ghcr.io registry but that fails using this python lib

The registry creds file exists.
Image ref: [ghcr.io/matejvasek/builder-ubi8-base:latest](http://ghcr.io/matejvasek/builder-ubi8-base:latest)
api base url: https://ghcr.io/v2/matejvasek/builder-ubi8-base/manifests/latest
-----------START-----------
GET https://ghcr.io/v2/matejvasek/builder-ubi8-base/manifests/latest
Accept: application/vnd.docker.distribution.manifest.list.v2+json,application/vnd.docker.distribution.manifest.v2+json,application/vnd.oci.image.index.v1+json,application/vnd.oci.image.manifest.v1+json,application/vnd.docker.distribution.manifest.v1+json,application/vnd.docker.distribution.manifest.v1+prettyjws
None
Traceback (most recent call last):
  File "/tekton/scripts/script-0-pwrkx", line 51, in <module>
    manifest = builder_image.get_manifest(auth=AUTH)
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/opt/app-root/lib64/python3.11/site-packages/image/containerimage.py", line 179, in get_manifest
    ContainerImageRegistryClient.get_manifest(self, auth)
  File "/opt/app-root/lib64/python3.11/site-packages/image/client.py", line 384, in get_manifest
    res = ContainerImageRegistryClient.query_manifest(
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/opt/app-root/lib64/python3.11/site-packages/image/client.py", line 360, in query_manifest
    res.raise_for_status()
  File "/opt/app-root/lib64/python3.11/site-packages/requests/models.py", line 1024, in raise_for_status
    raise HTTPError(http_error_msg, response=self)
requests.exceptions.HTTPError: 401 Client Error: Unauthorized for url: https://ghcr.io/v2/matejvasek/builder-ubi8-base/manifests/latest

Metadata

Metadata

Labels

bugv1.0.0-beta.1Features & bug fixes to be released in version 1.0.0-alpha.1

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions