docker-compose.yml Set the platform as follows
services:
  db:
    platform: linux/x86_64
    image: mysql:5.7
    ...
I was wondering why it works, but https://www.publickey1.jp/blog/20/apple_m1docker_desktopcpux86docker.html according to, "Docker Desktop for Mac" supports multi-CPU architecture, and with the above specifications, It seems that it will emulate the image for linux/x86_64 and operate it. May be slow to emulate
Recommended Posts