New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
dockerfile build failed in MacOSX, M1 Chip #49071
Comments
Hi @siddontang What is Linux VM do u use, is it Colima or Docker Desktop? This seems to be a known issue for the qeum & Go toolchain on ARM64 env: docker/buildx#2028 and it is said that 'the latest Docker Desktop' gets this fixed. |
FYI: I can build the docker image with Apple silicon chip (M2). You can try
I'm using latest docker desktop. Without
I also think this is because of golang for amd64. |
I think we can improve Docker file for ARM. How about applying option 1 or option 2? If okay, I can raise a pull request. Option 1: fix CPU architecture of base imageCurrently, the Dockerfile can handle only
ref: https://docs.docker.com/engine/reference/builder/#from Pros: ARM user (including M1 chip) can run Option 2: Make ARCH build argIf Pros: You can choose amd64 or arm64 during |
It will be fixed in #49559 |
Bug Report
Please answer these questions before submitting your issue. Thanks!
1. Minimal reproduce step (Required)
2. What did you expect to see? (Required)
Build successfully
3. What did you see instead (Required)
4. What is your TiDB version? (Required)
newest master
The text was updated successfully, but these errors were encountered: