Skip to content

Add --platform argument to devcontainer up#1241

Open
mrexodia wants to merge 1 commit into
devcontainers:mainfrom
mrexodia:platform-arg
Open

Add --platform argument to devcontainer up#1241
mrexodia wants to merge 1 commit into
devcontainers:mainfrom
mrexodia:platform-arg

Conversation

@mrexodia
Copy link
Copy Markdown
Contributor

@mrexodia mrexodia commented Jun 7, 2026

I noticed that when running devcontainer up the docker pull does not pass the --platform argument in runArgs correctly:

{
	"name": "x86-boot-sector-c",
	"image": "ghcr.io/mrexodia/x86-real-mode-bootloader:latest",
	"runArgs": ["--platform=linux/amd64"] // Support Rosetta
}

Added a --platform CLI override to devcontainer up and extract the default from runArgs. The CLI argument wins.

@mrexodia mrexodia requested a review from a team as a code owner June 7, 2026 01:08
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.

1 participant