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
"Use Rosetta" makes build for platform linux/amd64 extremely slow #7075
Comments
I had to revert to 4.24.2 to be able to work. Using 4.25.x would cause docker build to hang indefinitely even when disabling 'use rosetta'. My app is a simple node/next app. Building arm images is a breeze, though. |
I'm facing the same issue on MacBook Air M1 while building a Next.js with Nest.js app. Sometimes, the computer just crashes because resources are completely used by Docker, forcing me to reset the OS. Downgrading to 4.24.2 helped. Thanks @alnaranjo |
Thank you, @alnaranjo and @iaurg , for providing more work arounds! Upgraded to v4.25.2, no luck. I just log my testing here for later reference. |
Same here downgraded to 4.24.2 and unchecked |
Hi! Have you tried with Docker Desktop v4.26.0? |
for me works, it fixes the 100% cpu stuck at step node / npm build . hurrray. |
Thanks! I'm going to close this issue then. Feel free to reopen |
Description
I am using MacBook Pro M2 Max chip. For building an image, a nextjs app, to use on Ubuntu server,
Case 1:
If check
✅ Use Rosetta for x86/amd64 emulation on Apple Silicon
,then run
docker buildx build --platform linux/amd64 -t my_docker_repo/test_image:latest .
After a whole night, the build was still running after 30k seconds:
Case 2:
If uncheck
❌ Use Rosetta for x86/amd64 emulation on Apple Silicon
,run the same command:
docker buildx build --platform linux/amd64 -t my_docker_repo/test_image:latest .
done the job in around 300s:
Case 3:
If check
✅ Use Rosetta for x86/amd64 emulation on Apple Silicon
,run without specifying
--platform
tag (which would build an arm64 image):docker buildx build -t my_docker_repo/test_image:latest .
takes only 37 seconds:
Sure, this arm64 image could not be used in Ubuntu. But Case 3 proved this image is not very large. The build time in Case 2 is already very slow.
✅ Use Rosetta
is expected to accelerate Case 2, but unfortunately, it stuck image building as shown in Case 1.Reproduce
✅ Use Rosetta for x86/amd64 emulation on Apple Silicon
git clone https://github.com/Yidadaa/ChatGPT-Next-Web.git
cd ChatGPT-Next-Web
docker buildx build --platform linux/amd64 -t test_image:latest .
Expected behavior
No response
docker version
Client: Cloud integration: v1.0.35+desktop.5 Version: 24.0.6 API version: 1.43 Go version: go1.20.7 Git commit: ed223bc Built: Mon Sep 4 12:28:49 2023 OS/Arch: darwin/arm64 Context: desktop-linux Server: Docker Desktop 4.25.0 (126437) Engine: Version: 24.0.6 API version: 1.43 (minimum version 1.12) Go version: go1.20.7 Git commit: 1a79695 Built: Mon Sep 4 12:31:36 2023 OS/Arch: linux/arm64 Experimental: false containerd: Version: 1.6.22 GitCommit: 8165feabfdfe38c65b599c4993d227328c231fca runc: Version: 1.1.8 GitCommit: v1.1.8-0-g82f18fe docker-init: Version: 0.19.0 GitCommit: de40ad0
docker info
Diagnostics ID
a9d15c7e-33c8-4c10-9513-d0f62d4186fd/20231112055512
Additional Info
No response
The text was updated successfully, but these errors were encountered: