5 ms·
If you already have x86 to WASM, what do you need docker for? Seems like you already have all the encapsulation you could want at that point.
by MobiusHorizons 4y ago
If you already have x86 to WASM, what do you need docker for? Seems like you already have all the encapsulation you could want at that point.
- g3 4y agoIt makes for a cool demo (and it's a reference to the recent "wasm in docker" announcement).
- piersj225 4y agoLink for anyone curious https://news.ycombinator.com/item?id=33320530 https://news.ycombinator.com/item?id=33320530
- noname120 4y agoDocker is not just a container runner, it's also an API for interacting with them, a container creation language (Dockerfile), and more. Being able to run Docker enables you to get access to all these tools and build the Docker containers from other projects.
- _jal 4y agoThere's a generation of people who appear to treat docker images as a combined packaging/distribution mechanism. Instead of learning to create a .deb or .rpm, they write a dockerfile. I tend not to use that sort of thing, but not just because of docker - there's a bundle of related practices that tend to turn my eye elsewhere. YMMV.
- dboreham 4y agoResistance is futile.
- polotics 4y agoIt's very true. However what is intrinsically better about a .deb or .rpm apart from having been there first? Are they the epitome of something? This is an honest question, I am really not sure. I vaguely remember that making an rpm was unpleasant and not very well documented, but it's been about ten yeats now...
- _jal 4y agoI wouldn't say "intrinsically better". I have no idea what the One True Distribution Format looks like. I'd say at this point OS-level packaging provides more options and integrates better with the wider software ecosystem. But let me ask you this: how often do you see: FROM ubuntu:latest RUN apt-get -y update && apt-get -y install ... or the moral equivalent from a different distro? And do you ever consider the idea of your stuff being incorporated into some other container?
- josephg 4y agoAn rpm just needs to add the missing scripts and binaries to your existing operating system. It doesn’t need a full mini OS image to run. So an rpm will be ~2mb while a docker image of the same thing might be 150mb. Rpm and deb packages also usually contain startup scripts so any services can be set to start when your computer starts. And they can put log files and database files in your regular filesystem without any special nonsense. They run with (generally) user level access permissions, which are much more battle tested than root permissions through lxd. And they have full access to the computer’s networking devices. Rpm/deb packages can also install man files, command line tools, gui apps, and so on that can run directly in your operating system.
- doctor_eval 4y agoAs a counterpoint, a disadvantage of deb/rpm is that the installed code can actually scribble crap anywhere they like in your system. Did you just install a setuid program? Did it just install a service? Who knows! As much as I’m not a fan of Docker, it does isolate the container’s file system and other resources from the OS, something that deb/rpm/brew etc don’t do.
- btdmaster 4y agoYou can unpack those formats with `bsdtar xf PACKAGE` and that's something that is much harder to do with Docker.
- 4y ago
- pjmlp 4y agoThe next step is to replace the kernel with a type 1 hypervisor, doing container orchestration. Thanks to them we already have a way out of POSIX monoculture.
- stopdropnhotpot 4y agoFor driving development costs to zero.
- ASalazarMX 4y agoDid I say zero? Overcomplicating development will drive costs into the negative because your payroll will decrease when people quit and no one wants to maintain that jenga tower.