-
docker run
时候报错:
WARNING: The requested image’s platform (linux/amd64) does not match the detected host platform (linux/arm64/v8) and no specific platform was requested -
解决办法
docker build 后面加:–platform arm64 (arm64 兼容 mac m系列)
docker build --platform arm64 -t 11test/demo-docker . -
再次操作
build 之后再docker run
的时候就不会出现最开始上面的警告了 -
后话
实际上也只是警告,具体也都能跑起来的。。。