-
Notifications
You must be signed in to change notification settings - Fork 2.8k
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
Running bun amd64 in docker under platform rosetta2 translation breaks Bun.serve #15204
Comments
Is this really bun related? Seems more like an issue for the apple team emulating amd64 on arm64 (m2) |
As running an amd64 GoLang or NodeJS server via Rosetta2 works just fine in docker, yes I'd say it's most likely to be an underlying problem in Bun rather than that of Rosetta2. To be fair I can test this out on a simple Zig Zap server if it's a zig incompatibility. |
This is effectively a duplicate of #15139 |
We no longer provide a macOS x64 binary that supports non-avx CPUs. On macOS arm64, we recommend using arm64 builds of Bun. If you install via the |
This isn't running the Mac version at all, as it's inside a docker container with the platform flag set to linux/amd64.
|
Supporting a non avx docker linux/amd64 would probably fix it. Or a warning must be added to dockerhub oven/bun that Rosetta2 is not supported. |
Docker defaults to the non-AVX build Hm |
The strange thing with my particular situation is that the first request responds just fine. |
What version of Bun is running?
1.1.34+5e5e7c60f
What platform is your computer?
Darwin 24.1.0 arm64 arm
What steps can reproduce the bug?
command:
bun init; bun i
file:
index.ts
file:
Dockerfile
file:
.dockerignore
file:
docker-compose.yml
docker compose up -d --build
wget --spider http://localhost:3000/
, run this multiple times and it will stop working after a short while.What is the expected behavior?
200 responses returning the text "Bun!"
What do you see instead?
Request without a response, endlessly stuck with no response, no console errors.
Additional information
Running on M2 15.1 (24B83) with Docker Desktop 4.35.1 (173168)
The text was updated successfully, but these errors were encountered: