-
Notifications
You must be signed in to change notification settings - Fork 18.6k
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
Added Tag command to build multiple tagged images in one Dockerfile #1618
Conversation
ping @shykes |
@drewcsillag could you please rebase master ? Thanks |
@vieux Rebased |
The thing is that Dockerfiles are meant to be shared. Having a hardcoded tag will result in conflict. It might override local tags, it needs to be retagged in order to be pushed, etc.. Maybe we can prepend the user's login to the tag? |
On Thu 22 Aug 2013 01:45:07 PM EDT, Guillaume J. Charmes wrote:
But there are a ton of situations where they won't be shared and/or FROM company-base-image FROM company-daemon:base FROM company-daemon:base FROM company-daemon:base I have and can continue to do external tooling for this, but this is a I would posit that those who wish to share their Dockerfiles can simply
|
ping @shykes @crosbymichael |
ping @shykes |
For the curious, the original discussion is in #886. As a quick summary of the conclusion, it ended being closed based on the issue of nefarious Dockerfiles being able to overwrite important base images trivially, such as the official ubuntu images. To quote @shykes from that thread:
Perhaps as a temporary stopgap, it could be helpful to have a "pedantic" flag for |
Rebased per request. |
@tianon I'm thinking the other direction, that perhaps we could have an "allow potentially dangerous" flag. I'll work on it and add it to this PR. |
ping @shykes |
ping @shykes @crosbymichael @creack |
Hold up. Rebase required..... |
Ok, bunch of rebase-merge screwup fixed. @shykes @crosbymichael @creack |
could you add some documentation on the new flag ? (at least update the usage) |
@vieux Done. |
"Only for internal deployments" is not good enough, if it's available people will use it, including for public images. Just like "expose 80:80", it ended up causing more trouble than it solved. I can't merge this until we have an acceptable solution to the side effect. On Fri, Sep 20, 2013 at 9:02 AM, Drew Csillag notifications@github.com
|
I am afraid I rather dislike this idea. :( I feel like it pollutes the Dockerfile concept and that hardcoded TAGs will just end with conflicts and confusion. -1 to merge. |
My use case seems similar to @drewcsillag's. I'd like to deploy services inside containers, and also use containers to manage build dependencies. I'd like to avoid deploying the build-only dependencies to production. As an example, my service may need gcc to compile, but I don't need gcc on my production machines. I can think of two ways to accomplish this: a TAG instruction, like discussed here, or extending the FROM command to support paths to other Dockerfiles. TAG instructionIn the first example, I may have a Dockerfile that looks something like this:
Then I could Relative FROM commandI could create 3 Dockerfiles:
Essentially, any way to go back and branch off an older state, without explicitly tagging it or pushing it to a registry, would be very helpful. |
I've spoken with @shykes and @creack about this. The consensus was that:
From what I can tell this is essentially what @EvanKrall outlined in @drewcsillag thoughts? |
@gabrtv The TAG should actually be a tag, not a repo name. We should revise the wording, |
So in the context of what @creack has clarified, it might make sense to add some kind of syntax like |
I think this can be closed in favor of the PR that @gabrtv will be completing this using the Thanks! |
No description provided.