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

I must now visit harbor.test.com/dockerhub/rancher/rancher:latest, how can I remove the dockerhub prefix from the path for agent projects? #17791

Closed
xzxiaoshan opened this issue Nov 13, 2022 · 5 comments
Assignees
Labels

Comments

@xzxiaoshan
Copy link

xzxiaoshan commented Nov 13, 2022

In the case of using a proxy (for example, the name of the proxy project is dockerhub -- docker.io), what can I do without adding an access proxy image to the path?

docker. io/rancher/rancher:latest ---> harbor.test.com/rancher/rancher:latest

I must now visit harbor.test.com/dockerhub/rancher/rancher:latest, how can I remove the dockerhub prefix from the path for agent projects?

@xzxiaoshan xzxiaoshan changed the title I must now visit harbor. test Com/dockerhub/router/router: latest, how can I remove the dockerhub prefix from the path for agent projects? I must now visit harbor.test.com/dockerhub/router/router:latest, how can I remove the dockerhub prefix from the path for agent projects? Nov 13, 2022
@xzxiaoshan xzxiaoshan changed the title I must now visit harbor.test.com/dockerhub/router/router:latest, how can I remove the dockerhub prefix from the path for agent projects? I must now visit harbor.test.com/dockerhub/rancher/rancher:latest, how can I remove the dockerhub prefix from the path for agent projects? Nov 13, 2022
@stonezdj
Copy link
Contributor

Currently this feature is not supported, because dockerhub is a project name, also indicate that it is a proxy request to dockerhub, if you remove it from the command, it means pulling image from the local project rancher.

@ChristianCiach
Copy link

As a workaround, you can deploy an nginx reverse proxy that rewrites the requested paths from the docker client.

See

@github-actions
Copy link

github-actions bot commented Feb 7, 2023

This issue is being marked stale due to a period of inactivity. If this issue is still relevant, please comment or remove the stale label. Otherwise, this issue will close in 30 days.

@github-actions github-actions bot added the Stale label Feb 7, 2023
@github-actions
Copy link

github-actions bot commented Mar 9, 2023

This issue was closed because it has been stalled for 30 days with no activity. If this issue is still relevant, please re-open a new issue.

@github-actions github-actions bot closed this as not planned Won't fix, can't repro, duplicate, stale Mar 9, 2023
@xzxiaoshan
Copy link
Author

3Q @ChristianCiach

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants