When using repo discovery to pull containers from Docker.io registry, containers from main namespace (without slash in name) will fail to sync afterwards.
The problem is that while repo discovery works against `index.docker.io`, containers must be properly namespaced to be pulled from it. So instead of `alpine`, `library/alpine` must be pulled.
It seems that `library` is implicit when pulling images from `registry-1.docker.io`, so just `alpine` will work; but repo discovery doesn't work against that host, which means manual creation of repositories.
While this might be problem on Docker.io side, they are the biggest provider of images out there, so we might want to adjust to them nevertheless.
Version-Release number of selected component (if applicable):
Sat 6.5 snap 2
Steps to Reproduce:
1. Content -> Products -> Repo discovery -> Type: Container images
2. Registry: index.docker.io -> Registry Search Parameter: alpine
3. Select `alpine` and `alpine/git` -> Create Selected -> Run repository creation
4. Navigate to product page, sync both repositories
Syncing `alpine` repository fails; syncing `alpine/git` succeeds.
To make alpine sync, go to details page and do either of following:
- change Registry URL to `https://registry-1.docker.io/`
- change Upstream Repository Name to `library/alpine`
Syncing both succeeds.
Moving this to the pulp team. Being tracked in https://pulp.plan.io/issues/4374 .
Basically pulp needs to handle the docker logic as per the upstream bug.
https://github.com/pulp/pulp_docker/pull/304 should fix it.
The Pulp upstream bug status is at NEW. Updating the external tracker on this bug.
The Pulp upstream bug priority is at Normal. Updating the external tracker on this bug.
@Miroslaw afaik official docker v2 registry is located at registry-1.docker.io
only v1 clients should hit the index.docker.io, for v2 workflows registry-1.docker.io should be used.
Connecting redmine issue https://projects.theforeman.org/issues/25972 from this bug
Moving this bug to POST for triage into Satellite 6 since the upstream issue https://projects.theforeman.org/issues/25972 has been resolved.
The Pulp upstream bug status is at POST. Updating the external tracker on this bug.
The Pulp upstream bug status is at CLOSED - NOTABUG. Updating the external tracker on this bug.
Verified in Satellite 6.5.0 Snap 18
Followed the steps in the initial report, and both images sync'd correctly.
See attached video for verification.
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.
For information on the advisory, and where to find the updated
files, follow the link below.
If the solution does not work for you, open a new bug report.