3 ms·
For some reason I thought this was gonna be a demo of running docker in your browser through WASM. kinda disappointed that's not it :p
by AkshatJ27 4y ago
For some reason I thought this was gonna be a demo of running docker in your browser through WASM. kinda disappointed that's not it :p
- syrusakbary 4y agoFunnily enough, I believe that's completely achievable with enough time spent on it (probably a few weeks of an engineer working full time). We have technology like WebVM [1] (from leaningtech / CheerP) or Copy86 [2] that already allows x86 machine code execution/emulation on the web. If you add an OCI client layer on top that is executable in the browser, it should be possible to run Docker containers in the browser. [1] https://webvm.io/ https://webvm.io/ [2] https://copy.sh/v86/ https://copy.sh/v86/
- piersj225 4y agoSorry I can't reset my docker password to double check, but I think something like this exists [1]. I'm not sure what its limits are, but its a great tool for learning. [1] https://labs.play-with-docker.com/ https://labs.play-with-docker.com/
- syrusakbary 4y agoI just played with it and it doesn't execute the container in the browser. It executes it remotely and proxies the stdin/stdout and such from/to the browser (the browser is just a client instead of a runner)
- dwaite 4y agoI think the biggest challenge here is getting the resources through the browser - e.g. enough memory to run a decent container, or the ability to open a listening port.