Skip to content

docs: note ARG defaults override automatic TARGETPLATFORM - #25847

Open
locker95 wants to merge 1 commit into
docker:mainfrom
locker95:docs/targetplatform-arg-default
Open

docs: note ARG defaults override automatic TARGETPLATFORM#25847
locker95 wants to merge 1 commit into
docker:mainfrom
locker95:docs/targetplatform-arg-default

Conversation

@locker95

Copy link
Copy Markdown
Contributor

ARG TARGETPLATFORM=linux/amd64 (same for TARGETOS/TARGETARCH) is treated as a user-set value, so --platform never overrides it.

Declare the ARG with no default and apply a fallback later if you still need one.

Related to docker/buildx#510.

Signed-off-by: Dean Chen <862469039@qq.com>
@locker95
locker95 requested a review from dvdksn as a code owner August 16, 2026 00:46
@netlify

netlify Bot commented Aug 16, 2026

Copy link
Copy Markdown

Deploy Preview for docsdocker ready!

Name Link
🔨 Latest commit 02e53c4
🔍 Latest deploy log https://app.netlify.com/projects/docsdocker/deploys/6a81085c3b7d7e000839f2fc
😎 Deploy Preview https://deploy-preview-25847--docsdocker.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@github-actions github-actions Bot added the area/build Relates to Dockerfiles or docker build command label Aug 16, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/build Relates to Dockerfiles or docker build command

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant