Live data from Hacker News

Tech Preview of Docker Desktop for M1

docker.com

91–100 of 231 posts

Re: Tech Preview of Docker Desktop for M1

#91

Earlier quoted context omitted.

You wanted Apple to add container support to the OSX kernel? Hah. I wonder if the virtualization API that Apple is pushing performs better than Hyperkit.

> HyperKit currently only supports macOS using the Hypervisor.framework. Do people really not know how shit works these days?

Your hostility towards everything and everyone doesn't engender productive discussions.

Re: Tech Preview of Docker Desktop for M1

#92

Earlier quoted context omitted.

If you have multiple developers working on the same product, you want each developer to have their own environment. In my experience, for cost, convenience, and productivity its made most sense to do this with local Docker. It also eliminates a lot of connectivity issues with running on a remote machine. > In my experience Docker Desktop has been such a resource hog Not sure if this is related to the specific project…

Here is an example thread of many users experiencing resource utilization issues with various root causes: https://github.com/docker/for-mac/issues/3499 Some root causes have been addressed. If they are significantly changing the architecture with the Apple Silicon rollout, I'm very much looking forward to see if that improves things!

I wasn't trying to argue the point about Docker being a resource hog! I've always run Docker on computers with lots of RAM or with fairly simple images (or both sometimes) so it's likely I've just dodged that bullet.

Re: Tech Preview of Docker Desktop for M1

#93

Perhaps a dumb question but I'm curious why people don't use a VPS or a cloud linux machine more for Docker/K8s development instead of running Docker locally on a Mac. In my experience Docker Desktop has been such a resource hog, and Apple's hypervisor implementation pretty poor. I much prefer to have all that heavy lifting isolated away from my development machine to keep it responsive and cool.

That's one of the premises behind the Codespaces offering: https://github.com/features/codespaces

I'm pretty excited about this and see if being the norm for most web dev in a few years.

Re: Tech Preview of Docker Desktop for M1

#94
post #66

I've been using Preview 5 for about a week now and it's worked well for me in my admittedly limited use (devilbox). The Docker team is so awesome for getting this out so quickly.

Agreed, I was expecting it to take a lot longer.

Apple probably uses this technology a lot for themselves and has given support to Docker to implement this quickly.

Re: Tech Preview of Docker Desktop for M1

#95

Earlier quoted context omitted.

Too bad, if they had it running natively I would actively consider switching back to mac. Glad to see they are making progress on the M1 port though, my team will be excited.

... if docker ran “natively” it’d mean using kernel hooks provided by xnu, which means you’d be able to run another instance of macOS in a container. How is it so many people use docker but have zero fucking clue about how it works?

For the same reason that the general dev doesn't have in-depth knowledge about every OS they use: abstractions.

Re: Tech Preview of Docker Desktop for M1

#96

This bit about Multi-platform development is most interesting to me. > Many developers are going to experience multi-platform development for the first time with the M1 Macs. This is one of the key areas where Docker shines. Docker has had support for multi-platform images for a long time, meaning that you can build and run both x86 and ARM images on Desktop today. If multi platform images work, a lot of the concerns…

> If multi platform images work, a lot of the concerns people have about x86 versus ARM should go away.

Not really. Just because you have ARM and AMD debian, you wouldn't have same behaviour in both. You wouldn't have same list of packages that can be installed.

Re: Tech Preview of Docker Desktop for M1

#97
post #33

Earlier quoted context omitted.

If Docker for mac was running natively it would be more or less useless. Nobody deploys production code on MacOS hosts anymore. That it is all so smoothly powered by Linux is what makes it a great product.

I develop exclusively on Linux, but it would be nice if my teammates who don't didn't melt their laptops doing local dev on mac. If apple gave a shit about non apple developers they would provide the kernel hooks to help make it possible. Also, nobody deploys on mac hosts because virtualizing macos in a cloud environment is against tos, so options are expensive and limited.

I mean, they do provide the hooks via Hypervisor.framework. I'm not 100% familiar, but if it's anything like KVM then running a linux VM like that shouldn't have that much overhead.

Re: Tech Preview of Docker Desktop for M1

#98

Now come on Windows! Give me a solution for that (although I rarely use it) and I’m sold or maybe I moved the goal post to requiring more than 16gb RAM again but come on everyone you can do it! edit: guys I'm talking about running Windows on a VM on a M1 macbook. Just going down the checkbox of virtualization options. Docker is one checkbox. Now want Windows and Vmware/VirtualBox/Parallels

I run WSL 2 here with Docker Desktop and it's really good. It has been since WSL 2 was available.

As for 16GB of memory, funny enough I just put out a video today around the topic of "is 16GB of RAM enough for web development?" over at: https://www.youtube.com/watch?v=SQS7XCgUPmc

The video demos running everything I run in my day to day plus more just to see how far 16GB of RAM really goes. It's all running on a Windows 10 workstation I put together in 2014 which has a weak CPU and video card from today's standards, yet everything runs really smoothly.

I never broke 13GB of memory used even with running VMs separate from Docker and heavy duty video editing tools, all while recording a 1080p video at the same time.

For folks who want an M1 and are capped at 16gb of memory, I would imagine the memory usage experience would be similar to that Windows based video. Good enough for most web development, even with a moderate amount of media creation and ops work.

Re: Tech Preview of Docker Desktop for M1

#99

Earlier quoted context omitted.

You can run Windows For ARM on M1 Macs right now, I doubt you can get docker to do this without lots of manual effort.

Got a link to proof of this?

https://www.mail-archive.com/qemu-devel@nongnu.org/msg766282... for the Qemu patches

and https://www.microsoft.com/en-us/software-download/windowsins... for downloading the Windows build

Re: Tech Preview of Docker Desktop for M1

#100

Earlier quoted context omitted.

Agreed, I was expecting it to take a lot longer.

Apple probably uses this technology a lot for themselves and has given support to Docker to implement this quickly.

> has given support to Docker to implement this quickly

Any proof? As far as I know apple, they are not that developer/open source supportive.

Post reply on HN