Difference between revisions of "Docker build --platform"

From wikieduonline
Jump to navigation Jump to search
 
(8 intermediate revisions by the same user not shown)
Line 1: Line 1:
 
{{lc}}
 
{{lc}}
  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 10: Line 16:
 
* <code>[[kubectl logs my-pod -c my-container]]</code>
 
* <code>[[kubectl logs my-pod -c my-container]]</code>
 
* <code>[[docker pull --platform]]</code>
 
* <code>[[docker pull --platform]]</code>
 +
* [[Dockerfile]]
 +
* <code>[[act --container-architecture]]</code>
  
 
== See also ==
 
== See also ==
 +
* {{platform}}
 
* {{docker build}}
 
* {{docker build}}
  
 
[[Category:Docker]]
 
[[Category:Docker]]

Latest revision as of 16:15, 16 July 2024

Advertising: