0

I've built a sample docker image to post on SO using buildx:

docker buildx build --platform linux/arm64,linux/amd64 -t bjethwan/booklibrary_mod_multiarch . --push

Now when I save/export it on linux/amd, it captures image only for that os/cpu platform And there are no documented cmd options to make it include all the images(or manifest list)

docker save bjethwan/booklibrary_mod_multiarch:latest > test.tar

And when I load it in linux/arm64 based instance,

docker load < test.tar 

it fails at runtime

docker run -it -p 8080:8080 bjethwan/booklibrary_mod_multiarch
WARNING: The requested image's platform (linux/amd64) does not match the detected host platform (linux/arm64/v8) and no specific platform was requested
standard_init_linux.go:228: exec user process caused: exec format error
4

0 回答 0