Skip to content

Build command: Support multiple --image-name parameters #61

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

Merged
merged 4 commits into from
Jul 6, 2022

Conversation

samruddhikhandale
Copy link
Member

It allows to tag the same image more than once.

eg - devcontainer build --workspace-folder ./ --image-name alpine3 --image-name alpine3.0

This is mainly needed for multiple tagging of multi-arch images created with --platform.
If the cli creates a multi arch image, and if you retag with docker tag then the new image ends up using architecture of the current machine for tagging.

Hence, such multi-arch images needs to be tagged during image build else they won't support multi-architecture platform.

@Chuxel
Copy link
Member

Chuxel commented Jun 24, 2022

Love this idea! Super useful given how you have to use tags for versioning. 👍

@chrmarti chrmarti merged commit 6d18acf into main Jul 6, 2022
@chrmarti chrmarti deleted the samruddhikhandale/modify-image-name branch July 6, 2022 09:45
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

Successfully merging this pull request may close these issues.

4 participants