Re:Windows Subsystem for Linux 2 Moving into General Availab...
by abhishekjha on Wednesday April 15, 2020 @12:29AM
(#22874509)
I have used docker on MacOS. I don’t know about windows but it ran fine on my mac. Is there something particular that didn’t work for you?
[ Parent
| on HN ]
Re:Windows Subsystem for Linux 2 Moving into General Availab...
by zxexz on Wednesday April 15, 2020 @12:42AM
(#22874588)
I use Docker on macOS daily for work. I love it, and am grateful for it, but the experience is NOTHING like using Docker on Linux. Docker for macOS runs in a virtual machine, and requires dedicating RAM to the daemon. You aren’t directly using the host OS’ kernel either, which can lead to wonky behavior, especially in regards to networking (IME).
Re:Windows Subsystem for Linux 2 Moving into General Availab...
by RMPR on Wednesday April 15, 2020 @07:06AM
(#22876399)
Have you tried podman (https://podman.io/whatis.html)?
Re:Windows Subsystem for Linux 2 Moving into General Availab...
by FireBeyond on Wednesday April 15, 2020 @04:19PM
(#22882541)
How would podman help here? It doesn't run on macOS at all.
Re:Windows Subsystem for Linux 2 Moving into General Availab...
by geerlingguy on Wednesday April 15, 2020 @12:34AM
(#22874536)
There are a number of use cases where Docker for Mac and Windows are painful compared to Linux, and to overcome those problems (like fs performance on shared volumes) people spend a lot of time building hacky solutions.
Re:Windows Subsystem for Linux 2 Moving into General Availab...
by deergomoo on Wednesday April 15, 2020 @03:26AM
(#22875401)
- Bind mount performance is appalling, even with the delegated/cached modes. I understand the reasons for this, but it's still a major issue for some workloads. To use PHP development as an example, where a popular framework boot-up can read hundreds of files per request (as well as writing out to caches), it's not uncommon to see 5 second response times for a page that displays "hello world" and nothing else. Thankfully there are tools like docker-sync and Mutagen which, while it's one extra thing to set up, get you back to nearly native performance.
- com.docker.hyperkit is nuts. I can have a single container idling in the background doing nothing, hear my laptop fans spin up, and know without checking that com.docker.hyperkit is using 200% CPU for no discernible reason. Restarting the daemon brings things back down...for a while.
At the office we use Linux, but since I've been working from home on my Mac I've gone back to Vagrant for as many projects as I can. Heavier and far less easy to orchestrate yes, but I've found I actually end up with better and more predictable performance (and far less time with my laptop doing double duty as a space heater).