Skip to content

skopeo 404 against nexus oss docker registry #1000

Closed

Description

I am using nexus oss (3.25.0-03) to host a private docker registry and have configured it as per the documentation.

When I try and use skopeo inspect I am getting a 404 against the image I am trying to query:

skopeo inspect docker://mynexus.com/docker-releases/hello-world:linux
FATA[0000] Error parsing image name "docker://mynexus.com/docker-releases/hello-world:linux": error pinging docker registry mynexus.com: invalid status code from registry 404 (Not Found)

From the debug I can see its trying to look for v2 at the root level:

DEBU[0000] GET https://mynexus.com/v2/
DEBU[0000] Ping https://mynexus.com/v2/ status 404

Whereas in the nexus setup, v2 exists after the repository name, e.g:
mynexus.com/docker-releases/v2

Is there some config I can use to amend where it is trying to ping?

Activity

  1. vrothberg commented on Aug 6, 2020

    @vrothberg
    Contributor

    Thanks for opening the issue!

    Can you ping the registry, or does it work with Docker? My suspicion is that something is off in the setup.

  2. mtrmac commented on Aug 6, 2020

    @mtrmac
    Contributor

    From the debug I can see its trying to look for v2 at the root level:

    DEBU[0000] GET https://mynexus.com/v2/
    DEBU[0000] Ping https://mynexus.com/v2/ status 404
    

    Whereas in the nexus setup, v2 exists after the repository name, e.g:
    mynexus.com/docker-releases/v2

    That’s not how the API (https://github.com/docker/distribution/blob/master/docs/spec/api.md#put-manifest ) works. It is not possible to operate a registry with that protocol that does not use the root namespace on the host name, if only because the image syntax (docker://mynexus.com/docker-releases/hello-world:linux) has no way to specify whether the URL to access should be e.g. mynexus.com/v2/docker-releases/hello-world/manifests/linux or mynexus.com/docker-releases/v2/hello-world/manifests/linux.

    Compare the Docker request log; I’m fairly sure you will see a /v2/ access as well.

  3. ghost closed this as completedon Aug 7, 2020
  4. locked as resolved and limited conversation to collaborators on Sep 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions