-
-
Notifications
You must be signed in to change notification settings - Fork 455
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
[QUESTION/HELP] How to use k3d-managed registry as a pull-through-cache registry for docker hub #1419
Comments
Here is an example
|
Thank you for sharing your k3d-config.yaml I am using k3d to create clusters when I need them for testing and developing purposes. Hence I like the registry to be separate from the cluster. Unfortunately |
Now I understood, that the volume directive |
I now tried to setup the cluster+registry at once using the following configuration
Unfortunately I couldn't find a way how to push into this registry using docker. With the externally k3d-managed registry it worked. I tried to set I get an Also when trying the official registry test, it just cannot connect, retrying and retrying and retrying. docker pull nginx:latest
docker tag nginx:latest registry.localhost:5000/nginx:latest
docker push registry.localhost:5000/nginx:latest
@venkatamutyala can you help? |
This seems to be a docker problem - a registry with pull-through-cache does not support pushing to it so it seems |
EDIT: The problem was on my side, I used a wrong image tag, referring to a wrong docker user. |
Really the only thing left is how to update the registry locally. I found something like
But I am wondering whether it would get picked up correctly ... as the tag cannot include the docker username, but the image name itself obviously needs to be unique... I guess the above should roughly. Maybe there is some additional interaction with the "latest" version... I hope to be able test this soon. |
It would be great if the documentation gets updated so that the |
Hey @schlichtanders in case it helps, here is how i create the registry using docker compose. I use a separate VM for this since all our developers leverage it. To be clear I only use it as a pull through cache. I have not tried pushing images to it.
|
Question / Where do you need Help?
The documentation states that registries.yaml can be used to define redirects like normally in k3s. the
--registry-config
param is used here. I found some tutorials online how to define your own pull-through-cache registries mainly using the Environment VariableREGISTRY_PROXY_REMOTEURL
and similar to the docker imageregistry:2
or similar.However, the documentation recommends to use the k3s-managed registries, where the
--registry-use
param is used. Unfortunately the documentation ofk3d registry create
does not have any extra parameters which would indicate how to enable pull-through-cache.How then to use k3d-managed registries as a pull-through-cache? I.e. how to set variables like
REGISTRY_PROXY_REMOTEURL
.Scope of your Question
k3d documentation
The text was updated successfully, but these errors were encountered: