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

[Question] Can you build and push to a Registry an image with more than one tag with buildkit? #2925

Closed
gian1200 opened this issue Jun 22, 2022 · 3 comments

Comments

@gian1200
Copy link

I want to build and image, but push it to a registry with 2 tags. Is it possible? I'm currently able to do it with a single tag.

I've seen this old issue, but I'm not sure if I'm understanding it correctly.
#2141

I also have this question on Stackoverflow with more details.
https://stackoverflow.com/questions/72455628/how-to-push-a-single-image-with-multiple-tags-to-a-container-registry

@gian1200 gian1200 changed the title Can you build and push to a Registry an image with more than one tag with buildkit? [Question] Can you build and push to a Registry an image with more than one tag with buildkit? Jun 22, 2022
@tonistiigi
Copy link
Member

Yes, you can set multiple names. If you use buildctl then separate them with a comma. In Buildx just use multiple --tag.

@gian1200
Copy link
Author

Yes, after writing this issue I just happen to find the original issue #797.
However, this functionality is not explained in the docs, is it? Would be nice to have it there, too.

@jedevc
Copy link
Member

jedevc commented Jun 27, 2022

Heya @gian1200, I've added some more info to the docs in the mentioned PR, so I'm going to close this issue 🎉

Feel free to re-open if you feel it's not resolved 😄

@jedevc jedevc closed this as completed Jun 27, 2022
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

3 participants