Hi all,
I’m trying to use pulp-container
as a podman registry but I’m stuck here.
That’s what I started with:
pulp user create --username podman_ro --password hello
pulp user create --username podman_rw --password world
pulp container repository create --name foo
href=$(pulp container repository show --name foo)
pulp container distribution create --name foo --base-path containers/foo --repository ${href}
pulp container distribution role add --name foo --user podman_ro --role container.containerdistribution_consumer
pulp container distribution role add --name foo --user podman_rw --role container.containerdistribution_collaborator
Then I logged in successfully with podman login --username podman_rw --password world mypulpserver:24817
and tried to push an image:
podman push foo mypulpserver:24817/containers/foo:latest
Getting image source signatures
Copying blob 3fcb5d4fd907 [--------------------------------------] 8.0b / 663.9MiB | 444.9 KiB/s
Copying blob 174f56854903 [--------------------------------------] 8.0b / 201.9MiB | 400.4 KiB/s
WARN[0019] Failed, retrying in 1s ... (1/3).
Error: writing blob: initiating layer upload to /v2/containers/foo/blobs/uploads/ in mypulpserver:24817: name invalid: Repository is read-only.
Grepping through the pulp-container
sources I see that the error message comes if the container repository is not a container push repository. Alas, I have no idea how to create such a repository as the endpoint /pulp/api/v3/repositories/container/container-push/
does not allow PUSH
.
Also I have not seen any way to update a regular container repository to a container push repository.
What am I doing wrong?
Thanks & kind regards