Skip to content

Automatic platform ARGs are not recognized in a FROM stage for extension version >= 0.255.2 (exclude pre-release version) #7582

@MKrbm

Description

@MKrbm

VSCode Version: 1.73.1
Local OS Version: Ubuntu 22.04.1 LTS
Local chip architecture: X86_64
Dev Containers version : 0.262.3

FROM ubuntu:22.04 as base
FROM base as base-amd64
FROM base-${TARGETARCH} as target

Just building image with docker build . is fine but building with devcontainer.json generates an error (bug) with an error message

Error: Command failed: docker inspect --type image base-${TARGETARCH}

v0.251.0 works fine. Thank you.

Metadata

Metadata

Assignees

Labels

bugIssue identified by VS Code Team member as probable bugcontainersIssue in vscode-remote containers

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions