-
Notifications
You must be signed in to change notification settings - Fork 88
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
Problem with private registry on 17.06 #6
Comments
probably need to pass the credential about the private registry info into docker environment. I tried running |
@caoer you are probably right.. how to pass/expose the credentials to |
to pass credential, use docker's environment virable, and then passed into the shepherd script. checkout the script, It runs docker command I'm just too lazy/busy...so I'm fine with running outside of docker for it...But It is a wonderful idea, and PRs are always welcome! |
Just had a quick look this. Yes, the credentials have to be passed somehow. Unfortunately I won't have time to look at this until the week after next. In the meantime, as @caoer said, PR's are welcome ;) |
@djmaze I'm more than happy to help - but to be honest.. I have no idea where to start :) I think for it to really work, the credentials has to be "exposed" from the host. If you'd have to pass the credentials manually to the So ideally, |
For your reference, I have already opened an issue in moby/moby#33929 |
To work around the problem, we are using secrets to pass the credentials for our registry. Added a @danieljuhl Thank you for outlining a solution. |
I stumbled upon the same issue and found the following solution:
This works fine for me (with an image build by myself). Will add a PR about this soon. |
After upgrading docker to
17.06
,shepherd
no longer works, as updating a service requires the flag--with-registry-auth
to be passed manually on eachservice update
if the service was created with this flag.I tried making a fork, and apply this flag for all service updates if engine is higher than
17.05
, but though the command executed works if I'm connected directly to the docker node, it doesn't work as expected when executed by shepherd.Could it be some missing permissions for the shepherd service?
The text was updated successfully, but these errors were encountered: