Skip to content

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

Merged
Christof Marti (chrmarti) merged 4 commits into
mainfrom
samruddhikhandale/modify-image-name
Jul 6, 2022
Merged

Christof Marti (chrmarti) merged 4 commits into
mainfrom
samruddhikhandale/modify-image-name

Conversation

@samruddhikhandale

Copy link
Copy Markdown
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
Copy Markdown
Member

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

Comment thread src/spec-node/devContainersSpecCLI.ts Resolved
Comment thread src/spec-node/devContainersSpecCLI.ts Resolved
Comment thread src/spec-node/devContainersSpecCLI.ts Resolved
Comment thread src/spec-node/devContainersSpecCLI.ts Resolved
Comment thread src/spec-node/devContainersSpecCLI.ts Resolved
Comment thread src/spec-node/devContainersSpecCLI.ts Resolved
Comment thread src/spec-node/singleContainer.ts Resolved
Comment thread src/spec-node/devContainersSpecCLI.ts Resolved
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

4 participants