Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tagging pulp container images in docker's standard naming convention #1886

Open
VrindaMarwah opened this issue Jan 8, 2025 · 1 comment
Open
Labels

Comments

@VrindaMarwah
Copy link

I have created a pulp container repository 'container_repo' and created a remote for kubernetesui/dashboard:v2.7.0 image present in DockerHub. Following are the commands used:

pulp container repository create --name container_repo
pulp container remote create --name container_rem --url "https://registry-1.docker.io/" --upstream-name "kubernetesui/dashboard" --include-tags '["v2.7.0"]'
pulp container repository sync --name container_repo --remote container_rem
pulp container distribution create --name container_repo --base-path container_repo --repository container_repo

As I can see, pulp container repository stores images with the tag only (e.g., v2.7.0), which does not include docker's standard naming convention (e.g kubernetesui/dashboard:v2.7.0)

When I pull this image onto my server from pulp container repo, it is getting pulled as:
REPOSITORY TAG IMAGE ID CREATED SIZE
<pulp_server:port>/container_repo v2.7.0 07655ddf2eeb 2 years ago 249 MB

But I want the repository name to come as kubernetesui/dashboard instead of the above output.

When I try to provide a custom tag for the image, it gives an error:

[root@server1 pulp-dir]# pulp container repository tag --name container_repo --tag "kubernetesui/dashboard:v2.7.0" --digest <image_digest>
Error: Please pass a valid tag.

[root@server1 pulp-dir]# pulp container repository tag --name container_repo --tag kubernetesui/dashboard:v2.7.0 --digest <image_digest>
Error: Please pass a valid tag.

Does pulp support tagging the container images in the format kubernetesui/dashboard:v2.7.0 rather than the default tagging being done as v2.7.0?

@gerrod3
Copy link
Contributor

gerrod3 commented Jan 15, 2025

The image name that Pulp will serve is based on the base_path of the distribution. So if you want your image to be named kubernetesui/dashboard then you should change the base_path of your distribution to it.

pulp container distribution update --name container_repo --base-path kubernetesui/dashboard

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Status: Not Started
Development

No branches or pull requests

2 participants