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) registry #893

Closed
Code0x58 opened this issue Dec 14, 2017 · 0 comments · Fixed by #895
Closed

Unable to push to (private) registry #893

Code0x58 opened this issue Dec 14, 2017 · 0 comments · Fixed by #895

Comments

@Code0x58
Copy link
Contributor

Code0x58 commented Dec 14, 2017

When doing kompose up on a file which has build+image information, it builds the image and then it looks like it tries to push it incorrectly:

INFO Build key detected. Attempting to build and push image 'my.registry.com/my-namespace/image:latest' 
INFO Building image 'my.registry.com/my-namespace/image:latest' from directory 'image' 
INFO Image 'my.registry.com/my-namespace/image:latest' from directory 'image' built successfully 
INFO Pushing image 'my-namespace/image:latest' to registry 'my.registry.com' 
INFO Attempting authentication credentials 'my.registry.com 
ERRO Unable to push image 'my-namespace/image:latest' to registry 'my.registry.com'. Error: An image does not exist locally with the tag: my-namespace/image 
FATA Error while deploying application: k.Transform failed: Unable to push Docker image for service image: unable to push docker image(s). Check that `docker login` works successfully on the command line

docker-compose build && docker-compose push doesn't have an issue with this.

To bodge it at the moment I remove the build information and do docker push my.registry.com/my-namespace/image:latest before running kompose up.

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

Successfully merging a pull request may close this issue.

1 participant