3 ms·
> and also works across platforms and operating systems That's the greatest lie that Docker managed to convince people of. Docker is not portable, its images
by oblio 6y ago
> and also works across platforms and operating systems
That's the greatest lie that Docker managed to convince people of.
Docker is not portable, its images are not portable. It runs on Linux and that's it. It doesn't even run on other *NIXen.
Docker on Mac runs inside a VM. Docker on Windows runs inside a VM. Technically Docker for Windows supports Windows containers. But they only run on... Windows.
Docker is as portable as any software I can get my hands on and that I can run inside a VM. So almost all the desktop software I know of.
Docker just managed to package its software in a nicer way so that many people don't even realize that there's a VM behind the scenes (most usually notice because Docker is slower/much slower on non-Linux platforms).
- nine_k 6y agoDocker for Windows is a thing, and it does run Windows binaries natively. So you can publish for two platforms. Java is still a good way to have bulletproof cross-platform experience, but JRE is sort of large. JDK 10 or 11, IIRC, allows to package your code, only the needed parts of stdlib, and the VM into a reasonably lean self-contained executable.
- nicoburns 6y agoRust/Go are much better at than Java. You do need a separate binary for each platform which makes it slightly more of a pain for the maintainer to setup CI, but it's much more convenient for the end user.
- threeseed 6y agoI don't care if it runs in a VM or not. That's just an implementation detail. What matters is whether my app and the myriad of dependencies it relies on can be run easily and consistently.