-
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
[feature] Add TAG to Dockerfile #20540
Comments
@vdemeester hm, how i see many need this feature :) and also - main argument about override |
Sorry, not sure I like it. We don't name images in Dockerfiles and I don't think we should fix the tag either. Often these are tracked in git or other vcs were tags can be added to provide the same level of information about the Dockerfile. That is just my opinion though. |
I really think you should consider this feature. I'd like to be able to clone a Git repo, and be able to do If collisions exist, you could always issue a warning or something, right? |
since each run command creates a layer, the ability to tag after each layer would make it more practical to create pyramid-like images |
We have to be able to get the tag information from the building process. How are you getting versions from apt/dpkg into tags? |
There's a lot of debate on this feature. I would like it. In the meantime, I've developed a workaround for unix like OS's, or sh users.
Requires my hb-path wrapper script. Make Dockerfiles executable. If you wish to use a different tag, just run Docker the normal way. |
I especially like this idea. If I'm going to share an entire source package for an application that uses multiple containers and a single |
Let me close this one, as it went stale, and the Dockerfile syntax is now maintained in https://github.com/moby/buildkit |
Add instruction TAG with same behavion as build -t option
This allows you to keep the information on the name of the image file instead of building the script and making it easier to to find a file of this image.
The text was updated successfully, but these errors were encountered: