报错1.2024-03-03 18:10:13 2024-03-03T10:10:13.913559Z 0 [ERROR] InnoDB: Linux Native AIO interface is not supported on this platform. Please check your OS documentation and install appropriate binary of InnoDB.
报错2:WARNING: The requested image's platform (linux/amd64) does not match the detected host platform (linux/arm64/v8) and no specific platform was requested
解决方式1(不能用,mysql启动不起来。)
拉镜像:docker pull mysql/mysql-server:5.7
报错如下:
[ERROR] InnoDB: Linux Native AIO interface is not supported on this platform. Please check your OS documentation and install appropriate binary of InnoDB.
解决方式2: docker pull --platform linux/amd64 mysql:5.7.42
run 报错:
docker: error parsing specified platform: "amd64\u00a0" is an invalid component of "linux/amd64\u00a0": platform specifier component must match "^[A-Za-z0-9_-]+$": invalid argument.
总结:目前貌似没有mysql 5.*版本关于M1系统版本匹配的镜像;
要不是用最新的mysql:latest
要不装虚拟机:在VM里面玩。
各位网友如果有变通之法,可留言交流。