If I run docker build
on a x86_64/amd64
Linux, and then save the resulting image as a .tar
file via docker save
, and then place it on another Linux machine which is aarch64/arm64
, will it work normally there (after docker load
and docker run
)? Also, what if the second machine is s390x
(IBM Z) instead of aarch64/arm64
?
Asked
Active
Viewed 170 times
0

Pedro A
- 3,989
- 3
- 32
- 56
-
One processor can't normally run binaries built for another; their instruction set architectures are different. – David Maze Mar 14 '23 at 10:21
1 Answers
0
You can do docker run by passing specific platform setup
docker run --platform linux/amd64
Not always working, But it is indeed a trick way sometimes.

Andy Su
- 131
- 7
-
1How does this work? Does it use QEMU to emulate the foreign binaries? – Peter Cordes Mar 14 '23 at 12:22