News for hackers. Stuff that matters.
Re:Ask HN: What Is the Hype with Docker? by stingraycharles on Tuesday October 25, 2022 @01:04AM (#33326453)
Problem with Windows is that, if you're running Linux containers on them, it launches inside an embedded virtual machine (at least last I checked). This means that networking and storage suddenly has to go through another hop, making things that should be trivial extremely annoying.

E.g. a service binding telling you "please connect to http://127.0.0.1:8088" and for the love of god you don't know why it doesn't work, but it's because the container, while using --network=host, thinks you're on the same host, while that's actually the virtual machine which is almost entirely inaccessible to you.

Windows + docker is a minefield.

Re:Ask HN: What Is the Hype with Docker? by uranusjr on Tuesday October 25, 2022 @01:20AM (#33326536)
Docker (and all container solutions out there) runs the Linux container in a VM on _any_ non-Linux OS. This is a designed trade-off of using Linux virtualisation and not really Windows’s fault (nor macOS where I do a lot of development and has all the same problems).
Re:Ask HN: What Is the Hype with Docker? by Gigachad on Tuesday October 25, 2022 @01:49AM (#33326713)
I haven't encountered this issue on docker for mac. I can access containers from my web browser just fine. Yes it runs in a VM but I guess the GUI tool handles everything for you.
Re:Ask HN: What Is the Hype with Docker? by uranusjr on Tuesday October 25, 2022 @04:02AM (#33327540)
There are indeed edge cases where the VM implementation detail leaks, which I assume is what parent was referring to. Typical port exposing just works out of the box on Windows as well.
Re:Ask HN: What Is the Hype with Docker? by stingraycharles on Tuesday October 25, 2022 @06:06AM (#33328470)
I’m not saying it’s anyone’s fault, I’m just saying that the approach has very rough edges that are difficult to grasp for beginners. It’s one of the reasons Docker is not always a good choice for a development workflow.
Re:Ask HN: What Is the Hype with Docker? by dmingod666 on Tuesday October 25, 2022 @01:56AM (#33326759)
I'd prefer just go with hyperv at that point and build containers in a Linux environment..

IDEs can still access your VMs so you can have all the nice syntax highlighting etc from Windows but you are building inside Linux.

You have really nice networking options on hyperv so you can even check how your app deploys in a distributed environment.