-
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
-
後話
實際上也隻是警告,具體也都能跑起來的。。。