You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Create an empty directory, and add a single js file:
console.log("Hello via Bun!");
Now run the file via Docker:
docker run --rm -v "$PWD":/app --workdir=/app oven/bun:1.1.8 index.js
The first time it succeeds, but if I re-run it immediately, I get the response:
error: Module not found "/app/index.js"
Bun v1.1.8 (Linux arm64)
So I figured that it might be a problem with the volume, so I tried to forward a shell and execute bun several times:
docker run --rm -v "$PWD":/app --workdir=/app --entrypoint=sh oven/bun:1.1.8 -c 'bun index.js; bun index.js; bun index.js;'
Hello via Bun!
error: Module not found "/app/index.js"
Bun v1.1.8 (Linux arm64)
error: Module not found "/app/index.js"
Bun v1.1.8 (Linux arm64)
Interestingly, I don't get the same with plain node:
docker run --rm -v "$PWD":/app --workdir=/app --entrypoint=sh node:20 -c 'node index.js; node index.js; node index.js;'
Hello via Bun!
Hello via Bun!
Hello via Bun!
What is the expected behavior?
No response
What do you see instead?
No response
Additional information
I've tried it with several versions of bun, all the way down to 1.0.0 and I see the same result.
Here's my docker version, that might matter. It's a Rancher Desktop installation.
$ docker version
Client:
Version: 25.0.4-rd
API version: 1.43 (downgraded from 1.44)
Go version: go1.21.8
Git commit: c4cd0a9
Built: Fri Mar 8 09:09:46 2024
OS/Arch: darwin/arm64
Context: default
Server:
Engine:
Version: 24.0.7
API version: 1.43 (minimum version 1.12)
Go version: go1.21.3
Git commit: 311b9ff0aa93aa55880e1e5f8871c4fb69583426
Built: Fri Oct 27 15:13:04 2023
OS/Arch: linux/arm64
Experimental: false
containerd:
Version: v1.7.10
GitCommit: 4e1fe7492b9df85914c389d1f15a3ceedbb280ac
runc:
Version: 1.1.10
GitCommit: 18a0cb0f32bcac2ecc9a10f327d282759c144dab
docker-init:
Version: 0.19.0
GitCommit:
The text was updated successfully, but these errors were encountered:
What version of Bun is running?
1.1.8
What platform is your computer?
Darwin 23.4.0 arm64 arm
What steps can reproduce the bug?
Create an empty directory, and add a single js file:
Now run the file via Docker:
docker run --rm -v "$PWD":/app --workdir=/app oven/bun:1.1.8 index.js
The first time it succeeds, but if I re-run it immediately, I get the response:
So I figured that it might be a problem with the volume, so I tried to forward a shell and execute bun several times:
Interestingly, I don't get the same with plain node:
What is the expected behavior?
No response
What do you see instead?
No response
Additional information
I've tried it with several versions of bun, all the way down to 1.0.0 and I see the same result.
Here's my docker version, that might matter. It's a Rancher Desktop installation.
The text was updated successfully, but these errors were encountered: