Skip to content
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 to private repo in hub.docker.com #910

Closed
kbroughton opened this issue Jan 15, 2018 · 3 comments
Closed

unable to push to private repo in hub.docker.com #910

kbroughton opened this issue Jan 15, 2018 · 3 comments

Comments

@kbroughton
Copy link

$ kompose --file docker-compose-out.yml -v up
INFO Build key detected. Attempting to build and push image 'haystackabi/hsabi-web-app:4ca21a16'
DEBU Compose file dir: /Users/kesten/projects/core
INFO Building image 'myorg/myimage:4ca21a16' from directory 'myimage'
DEBU Created temporary file /tmp/kompose-image-build-328321841 for Docker image tarballing
INFO Image 'myorg/myimage' from directory 'myimage' built successfully
DEBU Docker Compose version: 3.0
FATA Error while deploying application: k.Transform failed: Unable to push Docker image for service haystack-web-app: Unable to retrieve .docker/config.json authentication details. Check that 'docker login' works successfully on the command line.: Failed to read authentication from dockercfg

$ kompose version
1.7.0 (767ab4b)

push using docker works fine
$ docker push haystackabi/hsabi-web-app:4ca21a16
The push refers to a repository [docker.io/haystackabi/hsabi-web-app]
2a0a82b8c76c: Layer already exists
5c95d741d318: Pushing [=================> ] 112MB/313MB
3f34fa06d2a5: Pushing [===================

@cdrage
Copy link
Member

cdrage commented Jan 15, 2018

@kbroughton What OS are you using? Seems it can't find ~/.docker/config.json

@kbroughton
Copy link
Author

osx and targeting gke.

I commented out the build step from docker-compose-out.yml and then hit this:
FATA Error while deploying application: google: could not find default credentials. See https://developers.google.com/accounts/docs/application-default-credentials for more information.

which was resolved by
kestens-MacBook-Pro:core kesten$ gcloud auth application-default login

And kube can't read from my dockerhub private repo so i get image pull failures.

@cdrage
Copy link
Member

cdrage commented Jan 24, 2018

Hey @kbroughton I'm going to close this issue in favour of #911

@cdrage cdrage closed this as completed Jan 24, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants