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

Document how to specify multiple names in the docker build --output type=image,name=... option #22019

Open
1 task done
jlhawn opened this issue Feb 12, 2025 · 4 comments
Open
1 task done
Labels
status/triage Needs triage

Comments

@jlhawn
Copy link
Contributor

jlhawn commented Feb 12, 2025

Is this a docs issue?

  • My issue is about the documentation content or website

Type of issue

I can't find what I'm looking for

Description

The docs website doesn't give an explicit example of how to specify multiple image names when using the --output type=image,name=... option of Docker Builds.

Location

https://docs.docker.com/build/exporters/image-registry/

Suggestion

The buildkit maintainers @tonistiigi and @thaJeztah made these comments about 5 years ago which are very helpful: moby/buildkit#797 (comment)

I think it would be good to include those examples in the official documentation. The buildkit README already does this: https://github.com/moby/buildkit/blob/master/README.md#imageregistry

@jlhawn jlhawn added the status/triage Needs triage label Feb 12, 2025
@thaJeztah
Copy link
Member

@jlhawn !!! That's been a while, how are you doing??

@jlhawn
Copy link
Contributor Author

jlhawn commented Feb 12, 2025

@jlhawn !!! That's been a while, how are you doing??

I'm doing well! I'm still working on devops but getting into data engineering too. How about you? I think of you every time I see stroopwafels 😆

@jlhawn
Copy link
Contributor Author

jlhawn commented Feb 12, 2025

oh! one more thing to add to this issue: it would be good to mention how the name option works in conjuction with the -t, --tag flag on docker builds.

@tonistiigi
Copy link
Member

Docker users should not need to use the name= inside the --output CSV. Just set -t/--tag and you can set multiple values for multiple names. The outputs that support names pick up the values from --tag.

Link above is from buildctl that doesn't have a --tag flag.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status/triage Needs triage
Projects
None yet
Development

No branches or pull requests

3 participants