M1 芯片上想用 mysql,
Dockfile
要写马甲 default-mysql-server
,
在 docker-compose.yml
里,platform
要选反直觉的 linux/x86_64
:
services:
mysql:
image: mysql
platform: linux/x86_64
environment:
MYSQL_ROOT_PASSWORD: password
M1 芯片上想用 mysql,
Dockfile
要写马甲 default-mysql-server
,
在 docker-compose.yml
里,platform
要选反直觉的 linux/x86_64
:
services:
mysql:
image: mysql
platform: linux/x86_64
environment:
MYSQL_ROOT_PASSWORD: password