【Mac M1 - docker-compose】 - The requested image‘s platform (linux/amd64) does not match the detected

使用 docker-compose 时,Mac M1 出现


The requested image's platform (linux/amd64) does not match the detected host platform (linux/arm64/v8) and no specific platform was requested
在这里插入图片描述

解决方法

编写 docker-compose.yml 文件,在对应的服务中加 platform: linux/amd64,比如我这里是 mysql5
【Mac M1 - docker-compose】 - The requested image‘s platform (linux/amd64) does not match the detected_第1张图片

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