Difference between revisions of "Docker build --platform"
Jump to navigation
Jump to search
(5 intermediate revisions by the same user not shown) | |||
Line 2: | Line 2: | ||
[[docker build]] [[--platform]]=linux/[[arm64]] . | [[docker build]] [[--platform]]=linux/[[arm64]] . | ||
docker build --platform=linux/[[amd64]] . | docker build --platform=linux/[[amd64]] . | ||
+ | [[docker build --help]] | ||
+ | |||
+ | [[docker build -t]] | ||
+ | |||
+ | [[FROM]] --platform=linux/amd64 | ||
== Errors == | == Errors == | ||
+ | * [[exec format error]] | ||
* <code>[[standard init linux.go:228: exec user process caused: exec format error]]</code> | * <code>[[standard init linux.go:228: exec user process caused: exec format error]]</code> | ||
* <code>[[exec /usr/local/bin/docker-entrypoint.sh: exec format error]]</code> | * <code>[[exec /usr/local/bin/docker-entrypoint.sh: exec format error]]</code> | ||
Line 11: | Line 17: | ||
* <code>[[docker pull --platform]]</code> | * <code>[[docker pull --platform]]</code> | ||
* [[Dockerfile]] | * [[Dockerfile]] | ||
+ | * <code>[[act --container-architecture]]</code> | ||
== See also == | == See also == |
Latest revision as of 16:15, 16 July 2024
docker build --platform=linux/arm64 . docker build --platform=linux/amd64 . docker build --help
docker build -t
FROM --platform=linux/amd64
Errors[edit]
- exec format error
standard init linux.go:228: exec user process caused: exec format error
exec /usr/local/bin/docker-entrypoint.sh: exec format error
Related[edit]
See also[edit]
Advertising: