ktock / container2wasm

Container to WASM converter
https://ktock.github.io/container2wasm-demo/
Apache License 2.0
2k stars 72 forks source link

c2w CLI does not work on Container Environments #294

Open sr229 opened 3 months ago

sr229 commented 3 months ago

Trying to run c2w on a Cloud IDE utilising either a Firecracker VM or Docker in its backend results in c2w not working because it tries to mount /rootfs/dev/null which is not permitted by the environment.

This is replicable using Gitpod or CSB.

image

ktock commented 3 months ago

Thanks for posting that issue. Currently that file is created during image conversion but yes, that won't work in some environment and that should be created during runtime.

microchipgnu commented 2 months ago

I tried something here https://github.com/microchipgnu/container4container2wasm

Take a look and let me know if this makes sense.

It worked for me, but looking for ways to improve it.