Skip to content

fix: skip "dynamic" build platform when setting Docker pull platform#438

Merged
jacobwgillespie merged 1 commit intomainfrom
pedro/dep-3651-load-true-fails-with-unknown-operating-system-or
Feb 25, 2026
Merged

fix: skip "dynamic" build platform when setting Docker pull platform#438
jacobwgillespie merged 1 commit intomainfrom
pedro/dep-3651-load-true-fails-with-unknown-operating-system-or

Conversation

@PedroGuerraPT
Copy link
Contributor

@PedroGuerraPT PedroGuerraPT commented Feb 25, 2026

Summary

  • When platforms is empty and BuildPlatform defaults to "dynamic", the Docker pull platform was set to "dynamic", which is not a valid Docker platform string. This caused --load to fail with "dynamic": unknown operating system or architecture: invalid argument
  • Skip setting the pull platform when BuildPlatform is "dynamic", letting Docker default to the host architecture

Regression from #436 (a1d6de5).

When platforms is empty and BuildPlatform defaults to "dynamic",
the pull platform was set to "dynamic" which is not a valid Docker
platform string, causing load to fail with "unknown operating system
or architecture: invalid argument".
@linear
Copy link

linear bot commented Feb 25, 2026

@jacobwgillespie jacobwgillespie merged commit 4c155db into main Feb 25, 2026
11 checks passed
@jacobwgillespie jacobwgillespie deleted the pedro/dep-3651-load-true-fails-with-unknown-operating-system-or branch February 25, 2026 10:06
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.

2 participants