-
Notifications
You must be signed in to change notification settings - Fork 441
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
Prevent pushing no-repository images to dockerhub? #1265
Comments
Thanks for your question. You need to use the |
The problem is that I need to use docker:publish to push to my private repo. But when I run that task, the tagged image does go to my private repo, but the no-tag image (image:tag) attempts to go to dockerhub, when it ought to do nothing. |
I'm using Docker terminology (registry, tag) here instead of the @CB-andrewehrlich, Docker tags are the coordinates for where your images will be pushed. So if you have So when you are saying that you want |
Yea, that's eventually the conclusion I came to, that Docker assumes no-repo is a synonym for Dockerhub, and there is no real way around that. |
I am tagging my images with
myrepo/image:tag
as well as justimage:tag
. I need theimage:tag
format for running locally in dev env. But,sbt docker:publish
tries to push theimage:tag
images up to dockerhub, when I would rather that it didn't try to publish them anywhere. Is there any way to get that behavior?The text was updated successfully, but these errors were encountered: