-
Notifications
You must be signed in to change notification settings - Fork 763
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
Unable to push Docker image for service web: Unable to retrieve .docker/config.json authentication details. #911
Comments
Hey @ruddra I've been trying to diagnose this issue. I'm assuming you're using OS X? |
I am using macOS high sierra :) |
@ruddra That'd be why :) Docker is running in a VM and I believe they changed the configuration location. I'll have to investigate. Just wondering, but where is the configuration file specifically on your machine? |
In '~/.docker/config.json' |
Same issue for me. Trying use local private repo, but even after docker login keep getting error "FATA Error while deploying application: k.Transform failed: Unable to push Docker image for service proxy: Unable to retrieve .docker/config.json authentication details. Check that 'docker login' works successfully on the command line.: Failed to read authentication from dockercfg". ~/.docker/config.json is in place |
Hey @coodix @ruddra @kbroughton I got time this week to get around to this issue, unfortunately, I don't have a Mac and I'm unable to run a VM (against licensing :() to diagnose it. So I need your help. I'd like you all (or at least one of you) to these two things: From this issue (pachyderm/pachyderm#2446) , let's try this:
echo $DOCKER_CONFIG
export DOCKER_CONFIG=~/.docker/ From this issue (fsouza/go-dockerclient#677)
I'm going to see if I can borrow a friends Mac or at least find one at the company lab which has one I can remote into! Seems at the moment this issue is only affected Mac users. Many thanks 💯 |
@cdrage , $DOCKER_CONFIG is empty by default. I tried to set it to "~/.docker/" but it didn't help. Same error appeared. But it became so after I execute "docker login localhost:5000" trying to make it work. In all cases same error. |
@cdrage , I've found out what's the problem. It's because dockerclient isn't integrated with osxkeychain. See fsouza/go-dockerclient#677 Also it relates to docker/for-mac#1584 So the current solution is to edit config.json: |
@cdrage , do you consider adding empty AuthConfiguration as it stated in comment for PushImage method (github.com/fsouza/go-dockerclient/image.go): At least in case if no one auth was found by dockerlib.NewAuthConfigurationsFromDockerCfg? |
@coodix Yeah, that's for investigating.. It's difficult with We can try to do empty authentication to fix it. |
I'm having the same issue on OSX when trying to push to my
What is the workaround for this? This is really blocking me to iterate on some pipelines. |
on a related issue: While digging I found that the podspec pachyderm creates for pipeline workers contains |
I got this issue on my project. This is my ~./docker/config.json :
My docker-compose file :
Here's my try to push the image :
|
@huntal seems like not a kompose issue, because docker-compose push is not working too. Maybe wrong dockerhub user namespace. The output shows that you are trying to push to |
Yup you were right my bad, just had to change the |
I pushed it manually and removed build from compose file. It worked! It feels like |
Could kubernetes/kubernetes#63874 be related to this? |
Issues go stale after 90d of inactivity. If this issue is safe to close now please do so with Send feedback to sig-testing, kubernetes/test-infra and/or fejta. |
Stale issues rot after 30d of inactivity. If this issue is safe to close now please do so with Send feedback to sig-testing, kubernetes/test-infra and/or fejta. |
This is still not working properly. I have no idea what's the problem (permissions? corrupted cache?)
note that both docker and docker-compose are pushing properly and I am running macOS 10.14 Mojave. It seems like a file permission issue with kubernetes, which I've installed via homebrew. Also my kubectl is not reading anything from my desktop folder. |
/remove-lifecycle rotten |
First thank you very much, solve my problems, here I have some supplements. |
So I'd like to add a bit to what everyone else has said. The message Once you have the key file, you can generate a base-64-encoded auth block using the same method they use for the |
So I solved this on OSX by disabling the keychain password storage:
Or for glcoud and pushing to gcr: now your If someone gets the keychain storage to work that would be nice... |
Issues go stale after 90d of inactivity. If this issue is safe to close now please do so with Send feedback to sig-testing, kubernetes/test-infra and/or fejta. |
/remove-lifecycle stale |
Issues go stale after 90d of inactivity. If this issue is safe to close now please do so with Send feedback to sig-testing, kubernetes/test-infra and/or fejta. |
Stale issues rot after 30d of inactivity. If this issue is safe to close now please do so with Send feedback to sig-testing, kubernetes/test-infra and/or fejta. |
Rotten issues close after 30d of inactivity. Send feedback to sig-testing, kubernetes/test-infra and/or fejta. |
@fejta-bot: Closing this issue. In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
I got this error while running:
kompose up
I have been using the following docker-compose.yml:
I ran the following commands:
I was able to push to my dockerhub repository using:
docker-compose push
The text was updated successfully, but these errors were encountered: