https://github.com/jcaesar/universal-docker-containers
Can I dream the dream of universal binaries in docker?
https://github.com/jcaesar/universal-docker-containers
Last synced: 6 months ago
JSON representation
Can I dream the dream of universal binaries in docker?
- Host: GitHub
- URL: https://github.com/jcaesar/universal-docker-containers
- Owner: jcaesar
- Created: 2021-07-16T10:36:58.000Z (over 4 years ago)
- Default Branch: mein
- Last Pushed: 2021-07-16T13:37:56.000Z (over 4 years ago)
- Last Synced: 2025-07-09T07:52:33.798Z (7 months ago)
- Language: Rust
- Size: 9.77 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Experiment
Set up either from the inside of docker
```
docker build -t register-wasmer-binfmt .
docker run --rm --privileged -v /proc/sys/fs/binfmt_misc/:/binfmt_misc/ register-wasmer-binfmt
```
Or normally (untested)
```
rustup target add x86_64-unknown-linux-musl
cargo build --release --target x86_64-unknown-linux-musl
sudo target/x86_64-unknown-linux-musl/release/target/x86_64-unknown-linux-musl/release/wasmer-static /proc/sys/fs/binfmt_misc/
```
Confirm that the interpreter has been installed
```
cat /proc/sys/fs/binfmt_misc/wasm
```
and enjoy running `wasm` binaries anywhere on your machine (with terrible start-up latency, because caching is too complicated for this experiment).
Crazy idea: Can I have a wasm-based busybox run httpd to spawn a wasm-based cgi, in docker?