Skip to content

Add --platform argument to devcontainer up - #1241

Open
Duncan Ogilvie (mrexodia) wants to merge 1 commit into
devcontainers:mainfrom
mrexodia:platform-arg
Open

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

Conversation

@mrexodia

@mrexodia Duncan Ogilvie (mrexodia) commented Jun 7, 2026

Copy link
Copy Markdown
Contributor

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

Copy link
Copy Markdown
Contributor Author

Abdurrahmaan Iqbal (@abdurriq) Christof Marti (@chrmarti) would it be possible to approve the workflows?

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