WARNING: The requested image‘s platform (linux/arm64/v8) does not match the detected host platform (

WARNING: The requested image's platform (linux/arm64/v8) does not match the detected host platform (linux/amd64) and no specific platform was requested
standard_init_linux.go:228: exec user process caused: exec format error

设置  "experimental": true

WARNING: The requested image‘s platform (linux/arm64/v8) does not match the detected host platform (_第1张图片

重启docker

用docker version查看,确认是否启动

WARNING: The requested image‘s platform (linux/arm64/v8) does not match the detected host platform (_第2张图片

 然后

docker buildx build --platform linux/amd64 abcde . 

abcde是你自己的镜像名字

然后就可以

docker run --rm abcde

即可运行起来

你可能感兴趣的:(linux,docker)