Hi, I have spun up a docker registry on docker.domain.com.
From any machine I can login to the registry via:
docker login -u username -p password docker.domain.com
And from the browser if I browse to https://docker.domain.com/v2 I get the typical Basic Auth pop up to enter credentials. After logging in I get the typicial blank {} response.
Now, I have a pipeline (the docker template from bitbucket) that contains (I know this is not safe, I was just trying to get to the error):
- docker login -u username -p password docker.domain.com
Which is the same line as before. But this time when I run the pipeline I get:
Error response from daemon: Get https://docker.domain.com/v2/: net/http: request canceled while waiting for connection (Client.Timeout exceeded while awaiting headers)
Hi, @Martí Bastida Comas, thank you for reaching out to Atlassian Community.
As you confirmed it works locally and by the error message you received, what could be happening is that your private docker registry could be behind a firewall and not allowing the pipeline to connect. If that’s the case, you would need to ensure that these IPs are whitelisted:
Please let me know how it goes and feel free to share any additional questions or concerns regarding this case.
Kind regards,
Caroline
Thanks @Caroline R
I will give it a try and come back.
But I doubt it's the problem. The registry is hosted in a VPS and I have not configured a firewall. But I will check with the VPS provider just in case.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
If you are using custom docker registry, try with v1 as described here
https://docs.docker.com/engine/reference/commandline/login/
If you have solved the issue, feel free to post it here
Thanks,
Pramodh
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @Pramodh M and thanks for the reply.
From what I have read on the post you are suggesting that I need to install a credential store helper on the pipeline?
Because the documentation mentions a /v1 path. But it is part of the example on how to configure a credential store.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Excuse me @Pramodh M for my insisting but I don't really understand how the link you sent me can help with the problem I'm struggling.
The links seems to work around the idea of using an external Credential Store to increase security. How can this help me?
Moreover, from any machine other than the bitbucket pipelines the docker login command works...
Thanks
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.