-
Notifications
You must be signed in to change notification settings - Fork 4.7k
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
Cannot create image stream from private registry with secret? #20084
Comments
#18449 - potentially similar; however I am not using docker.io and was unable to find a solution via this thread.. |
@openshift/sig-developer-experience |
@snimmagadda1 the issue is that the oc 3.6 client had issues creating proper docker secrets and the workaround from the thread was to create a generic secret from your .docker/config.json file (after doing a docker login to populate your config.json):
|
please try that and let me know if it gets your import to work. |
closing based on lack of feedback, can reopen. |
@bparees I am facing the issue and tested the way with creating a secret based on the config.json, but without any success. It looks like the Pod is not able to pull the image. The image lookup during the creation of the Deployment looks fine. The problem occurs on Openshift 3.6 and 3.7 in our case. |
@xibix-fp the reported issue was for creating imagestreams that import from a private registry. your issue is with pulling images from a private registry which is a different component. Please open a new issue so we can route it to the correct team and not confuse people about which problem is being discussed. |
@bparees That was just an additional information. When using ImageStreaming the same error occurs and appear in the Pod event log. |
@xibix-fp can you tell me if there is an issue for the comment above by you? I am facing the same problem. @bparees I am facing it on 3.10 UpdateSo, I found a workaround to this. Opened /etc/containers/registries.conf on the master and nodes, and added the following to registries This is most likely what is to be done through the ansible installation |
@gauravojha There is no issue by me opened yet. But it is still not working and as I do not have any access to the master nodes, I have no chance to implement your workaround. :-( |
@xibix-fp if you have access to the infra or computing nodes, you can try putting it there. Probably because the nodes are what should be pulling the image, but I am not sure if this will work. Worth a shot I guess |
I am trying to pull from a private docker registry hosted on Microsoft Azure and create an image stream from it. I have created a secret with the credentials I am able to pull from the registry with; however, when I run my oc import-image command it tells me i am unauthorized (see below).. Note: I have also tried with the --insecure flag as well.
Version
oc v3.6.173.0.5
kubernetes v1.6.1+5115d708d7
features: Basic-Auth
Server https://ocp.235-365-38-9b22f2.cor00005.cna.ukcloud.com:8443
openshift v3.7.44
kubernetes v1.7.6+a08f5eeb62
Steps To Reproduce
Current Result
Expected Result
Successful image stream created...
The text was updated successfully, but these errors were encountered: