Live data from Hacker News

Docker for Mac and Windows Beta

blog.docker.com

21–30 of 250 posts

Re: Docker for Mac and Windows Beta

#21
post #8

Earlier quoted context omitted.

Let me explain Docker for Mac in a little more detail [I work on this project at Docker]. Previously in order to run Linux containers on a Mac, you needed to install VirtualBox and have an embedded Linux virtual machine that would run the Docker containers from the Mac CLI. There would be a network endpoint on your Mac that pointed at the Linux VM, and the two worlds are quite separate. Docker for Mac is a native Mac…

xhyve isn't exactly production ready (and the main repo hasn't been updated for a while). Did you guys actually solve some of the major problems (e.g., https://github.com/mist64/xhyve/issues/86 - crash coming back from sleep) or is that an expected part of the beta experience?

Yes, quite a few issues of that nature have been fixed (and we are planning to open-source the changes later in the year once we stabilise the overall application).

The bug above has been reported to Apple and they've reportedly fixed it in the latest 10.11.4 seeds, but we've put in a workaround that detects ACPI sleep events and freezes vCPUs just before going into hibernate mode. None of the beta testers have reported any sleep crashes using Docker for Mac recently, so if you do see anything of this nature please let us know.

Re: Docker for Mac and Windows Beta

#22
post #3

If I had a yearly quota on HN for upvotes, I'd use all of them on this. > Volume mounting for your code and data: volume data access works correctly, including file change notifications (on Mac inotify now works seamlessly inside containers for volume mounted directories). This enables edit/test cycles for “in container” development. This (filesystem notifications) was one of the major drawbacks for using Docker on M…

This is huge! We had a lot of trouble getting fs notifications working in containers, especially for hot-reloading of code.

Our solution was to create a custom fs watcher that would look for changes in the content of the files (it's only code, and for development, so speed doesn't matter much). I have been looking to replace this with something cleaner (at least with something like Dinghy and actual filesystem events), but Docker for Mac is likely the way we'll go.

Re: Docker for Mac and Windows Beta

#23
My goodness. This is some of the best news from docker this year and we are still just getting started. Packaging various hot reloading JavaScript apps will finally be possible. Gosh. I can't begin to say just how excited I am for this.

Re: Docker for Mac and Windows Beta

#25
post #9

Earlier quoted context omitted.

They said simplest :)

If you purchase a laptop knowing that you will be running Linux and doing a little bit of research up front, it is every bit as simple as running a laptop with Windows or OS X.

Exactly, if you accept that you have to buy a Mac to use osX and call that simple, you must also judge Linux by buying a System 76, Entroware, Dell dev edition or a Librem laptop. Alternatively, you can also judge osX by installing it on non-Apple hardware ;)

Re: Docker for Mac and Windows Beta

#26
post #20

If you're using docker on mac, you're probably not using it there for easy scaling (which was the reason docker was created back then), but for the "it just works" feeling when using your development environment. But docker introduces far too much incidental complexity compared to simply using a good package manager. A good package manager can deliver the same "it just works" feeling of docker while being far more li…

Nix is more difficult. With Docker, you don't need to learn much new stuff, since images are created from sequences of ordinary shell commands running on familiar distributions. Nix requires you to familiarize yourself with a new package manager and its somewhat arcane definition language. And then also the specific Nix tools for working with npm, ghc, or whatever you want to use. So the experience is very different.

Re: Docker for Mac and Windows Beta

#27
post #9

Earlier quoted context omitted.

They said simplest :)

If you purchase a laptop knowing that you will be running Linux and doing a little bit of research up front, it is every bit as simple as running a laptop with Windows or OS X.

Har har guys this was meant to be tongue-in-cheek. Let's not turn it into a flamewar. I'm a happy Linux Docker user but I'm happy to hear that things are becoming really simple and easy for Mac OS X and Windows devs, too.

Re: Docker for Mac and Windows Beta

#28
post #8

Earlier quoted context omitted.

Let me explain Docker for Mac in a little more detail [I work on this project at Docker]. Previously in order to run Linux containers on a Mac, you needed to install VirtualBox and have an embedded Linux virtual machine that would run the Docker containers from the Mac CLI. There would be a network endpoint on your Mac that pointed at the Linux VM, and the two worlds are quite separate. Docker for Mac is a native Mac…

xhyve isn't exactly production ready (and the main repo hasn't been updated for a while). Did you guys actually solve some of the major problems (e.g., https://github.com/mist64/xhyve/issues/86 - crash coming back from sleep) or is that an expected part of the beta experience?

I have not experienced this crash, and even had a container running last night, put the laptop to bed, woke it up this morning and the container is still there, running and interactive. Running OSX 10.11.3

Re: Docker for Mac and Windows Beta

#29

Private beta is behind a questionnaire, just FYI. You can't, unfortunately, download anything yet unless you get an invite.

We're onboarding people over time so that we can we can iterate on the beta as we go. The questionnaire is only asking for basic details (Name, Company, which version are you interested in). You do need a Docker Hub ID first.

Re: Docker for Mac and Windows Beta

#30
post #3

If I had a yearly quota on HN for upvotes, I'd use all of them on this. > Volume mounting for your code and data: volume data access works correctly, including file change notifications (on Mac inotify now works seamlessly inside containers for volume mounted directories). This enables edit/test cycles for “in container” development. This (filesystem notifications) was one of the major drawbacks for using Docker on M…

You should check out Dlite (which is an alternative to Dinghy) has been around for a few months: https://github.com/nlf/dlite

It's been a much more friendly (read: plugin and play) than dinghy.

Post reply on HN