20 ms·
Docker for Mac Beta Review
- dotmpe 11y agoThe touted "native" is not what it is all cracked up to be. Maybe windows is a plus that brings a few souls into the fold, but I've been looking for OSX performance ratings and only found some comments here and there that are like my experience. At my El Capitano, the exact same setup in Docker Beta takes roughly ten times to do its thing than my more flexible vbox setup did. A java stack (Jenkins) starts in about 1.5 minutes, but with Docker Beta it takes 15 minutes or about! So, my docker-machine setup lets me see my hosts with vbox, manage them with docker-machine, and get the NFS tweaked with docker-machine-nfs. boot2docker OS is nice and small and works. So for me this is quite a contrast with the 'native' Alpine images based Beta. Which in my 5-hour stint with it did not show much way to overview or inspect it without getting new/more gear.
- justinhj 11y agoGood review. One thing mentioned is that the author was able to remove Kitematic amongst other things. Kitematic is a GUI for Docker. There is currently no replacement for it.
- gschrader 11y agoI was under the assumption that Kitematic wouldn't work with the beta but low and behold it does. I'm not sure what it will do if you have the old Docker toolbox installed at the same time however.
- justinhj 11y agoI had an older version of Docker installed as well as the beta, so when I installed Kitematic nothing worked correctly until I reverted everything.
- tacos 11y agoThis "review" is the technical equivalent of a YouTube unboxing video. Screenshot, screenshot, something I already knew from reading the press release, screenshot, platitude, one big technical error in the conclusion, and done. If it really worked (especially on Windows) Docker would post the binaries instead of treating this like Wonka Golden Tickets. Love Docker, am actually waiting to be approved so I can get to building something, but posts like this are a symptom of a larger problem.
- minimaxir 11y ago> If it really worked That's why it's a beta.
- garadox 11y agoThere are still some rough edges, crashes when you resume from sleep (fixed in the latest update I might add), things like that. It's pretty close to an open beta in my opinion.
- shykes 11y agoDisclaimer: I work at Docker. The reason we are keeping the beta private is because we don't believe the quality is good enough yet to "open the floodgates". We are sending as many invites as the engineers are comfortable with - currently that's several thousands per day. As we hit more and more edge cases (performance, stability, support for unusual configurations...) we are expanding the pool as fast as we can.
- 11y ago
- Matt3o12_ 11y agoWhy do people value that so much? I really don't care if a tiny VMis running in the background. Also, running that VM gives me more confidence that it will also run on the production machine (since they use the same kernel and the same docker version). The only problem I had with docker was that I did not use to support shared volumes that are outside the home folder on Mac (I think they changed that now, but I'm not sure).
- tacos 11y agoVirtualBox and VMWare are hardly "tiny." I've never had a good experience with VirtualBox on any platform. Thing is constantly broken and endlessly updated to break in newer, less Google-able ways and just causes never-ending grief in unexpected places for me.
- striking 11y agoBy contrast, I've never once had an issue with VirtualBox. Vagrant and VirtualBox are my best buddies.
- Osiris 11y agoI'm a node.js developer. I understand the benefit of using docker for deployments or CI testing, but I have yet to be convinced of the benefits of using it for development on my local machine. I install node, postgres, and redis natively and it all works fine. What benefits does docker provide to my workflow?
- accounthere 11y agoYou might need different node/postgres versions for different projects.
- blowski 11y agoOr indeed for testing the same project against different versions or in different environments.
- SilasX 11y agoWait, not even another kind of VM? Have you ever had to work with a team that has an unreliable environment? And had to walk them through debugging an error message for installing one of them, or wanted to add something with further dependencies? (Not to say Docker's immune from that; the sudden deprecation of docker-compose for docker-machine was a nasty surprise.)
- kevan 11y ago>the sudden deprecation of docker-compose for docker-machine was a nasty surprise. I think you meant the deprecation of Boot2Docker?
- rzimmerman 11y agoI've been using the Mac Beta for a few weeks and I can also say it's great. Install is easy and it just works. It's such a relief being able to do dev work directly on my machine without docker-machine/VirtualBox. I've been hitting it with a variety of Ubuntu-based containers without any issues.
- viglesiasce 11y agoI've been using the following docker-machine plugin and found it to be great: https://github.com/zchee/docker-machine-driver-xhyve https://github.com/zchee/docker-machine-driver-xhyve
- nzoschke 11y agoAuthor here. I was using that prior to getting in the beta. Tremendous work went into that driver, so I'm happy to see the techniques get picked up elsewhere.
- shuzchen 11y agoCan anybody in HN provide a quickpath into the beta? I signed up when it was first announced (seems to be over 30 days ago: https://news.ycombinator.com/item?id=11352389 https://news.ycombinator.com/item?id=11352389) but haven't heard anything back yet.
- ryanSrich 11y agoSame. I even reached out to them on Twitter and didn't hear anything back.
- tln 11y agoI am in the same boat. I'm actually holding up a wider scope for Docker deployment within our organization until we can use Docker for Mac.
- dandandan 11y agoWhy does needing to use docker-machine prevent you from rolling out docker within your org?
- tln 11y agoI would prefer to ensure my colleagues go through one transition in their developer setup, rather than two. The vagrant-based docker machine system needs some work to be a smooth experience, such as NFS workarounds for shared file system performance, file watching and so on. This is hopefully avoidable in Docker for Mac!
- bpicolo 11y agohttps://github.com/nlf/dlite https://github.com/nlf/dlite is a pretty good placeholder. Only thing it stumbles a lot on in my experience is if your containers need to hit a VPN.
- tln 11y agoThanks! I'll try that.
- jdub 11y agoSame experience here, both on Mac and Windows. They've done a great job making it "just work". The user interface pieces are a bit raw -- perhaps "minimalist" or "unobtrusive" would put that in a better light! -- but clearly most of the work has gone into the lower level integration, where it shines. Docker for Mac/Windows, once released, will nuke the ick factor on those platforms from orbit, which can only lead to even more adoption.
- m_mueller 11y agoI hope there's going to be an easy way to package this with your own docker image in order to have a new way to distribute applications. My usecase is running a server locally so you can use a webapp with local network speed and offline access and lots of local storage.
- derefr 11y agoOh sure, there's all sorts of integration possibilities. Docker Applets, ActiveDocker, Docker Web Start... ;)
- clessg 11y agoDockerScript™
- jimmcslim 11y agoIsn't that Sandstorm's usecase... more or less?
- m_mueller 11y agoInteresting, this is the first time I'm reading about it [1]. Well, if anything it looks like a web app would have to be rebuilt from the ground up to fit that model. I haven't yet read much about it, but here's a few questions that pop up immediately: 1) If you have a container per data object, doesn't that mean you also have to start a process every time a user opens a document? So forget about doing any computations in the setup. Even just things like using regex patterns in python (that need to be compiled once) or using anything with a VM (that needs to be started) you'd have to give up. Usecase seems to be extremely limited, but maybe I'm not getting something right here. 2) How do you handle indexes, views and collections over a large set of data objects? [1]https://sandstorm.io/how-it-works https://sandstorm.io/how-it-works
- gtrubetskoy 11y agoThe interesting bit here is that in this scenario Docker creates and runs an actual VM, not so much a "container"?
- joeblau 11y agoWhoa! When did OS X add the The Hypervisor Framework? This looks really promising; I need to check this out.
- bobwaycott 11y agoI believe OS X 10.10 is the earliest availability.
- joeblau 11y agoAh okay. One of my co-workers who worked at Apple told me: > It was a prerequisite for any VM stuff being sold in the App Store
- bryanh 11y agoI've noticed some pretty extreme performance penalties with Docker for Mac. Wherein VirtualBox would spin <60% CPU idling a bunch of services (MySQL, RabbitMQ, Redis, Elasticsearch, Memcached, several Python daemons) - Docker for Mac's driver hovers around 100% (spiking often to 200/300%) with another 20-30% (spiking to 50-80%) on the osxfs. I'm going to guess it'll get better in time. It would be nice to get some insight into just what is burning CPU cycles. The experience besides that was really top notch IMO.
- avsm 11y ago[I work on Docker for Mac] The early betas focussed on feature completeness rather than performance for filesystem sharing. In particular, we have implemented a new "osxfs" that implements bidirectional translation between Linux and OSX filesystems, including inotify/FSEvents and uid/guid mapping between the host and the container. Getting the semantics right took a while, and all the recent betas have been steadily gaining in performance as we implement more optimisations in the data paths. If you do spot any pathological "spinning cases" where a particular container operation appears to spiking the CPU more than it should be in, we'd like to know about it so we can fix it. Reproducible Dockerfiles on the Hub are particularly appreciated so that we can add them to the regression tests.
- bryanh 11y agoThanks for the reassurance - I figured this was the case!
- cstrahan 11y ago> In particular, we have implemented a new "osxfs" ... Are we going to see these changes rolled back upstream in xhyve?
- chamoda 11y agoPreviously I had permission issues (Only root can write to host) when mounted a folder with OSX filesystem. Hope this would fix those issues. I'm talking about this issue https://github.com/boot2docker/boot2docker/issues/581 https://github.com/boot2docker/boot2docker/issues/581
- smegel 11y agoSo it uses xhyve...does this mean Docker runs up a full hypervisor per Docker process you run? That seems a bit excessive.
- friism 11y agoThat's not the case - there's only one virtual machine shared by all containers.
- smegel 11y agoOh...that's interesting. That would even be useful on Linux to enable greater resource separation between processes...say being able to lock all Docker processes down to 1-2 cores on a machine and with a hard memory limit they can't exceed.
- pritambaral 11y agoThat's already possible with cgroups. Adding a virtualization layer even on Linux would be wasteful, since Docker runs natively on Linux anyway.
- zenlikethat 11y agoWhat you mention is a major reason why Linux containers were invented, and is already possible with Docker today. Take a look at the '--mem-limit' or '--cpu-shares' flags for 'docker run', for instance.
- cstrahan 11y agoI would bet money that it does not. The Virtualbox based solutions all create one VM and run all containers there -- why would they stop doing that just because they're using a different means of virtualization?
- smegel 11y agoWell part of me hoped this was actually Docker for Mac, not just running Docker inside a Linux VM. Guess what? I can do that on Windows 10 too and it works like a charm.
- beaker52 11y agoFor anyone wanting to use all this cool stuff without waiting for the release, check out nlf/dlite https://github.com/nlf/dlite https://github.com/nlf/dlite which has the xhyve implementation already.
- wichsen 11y agoQuestion: Is this compatible with OS X 10.9.x or earlier? Or is it only for the latest pieces of shit that are 10.10/10.11? edit thanks for the correction netheril96! I'm curious about the state of compatibility because I've drawn a line in the sand -- and refuse to upgrade from 10.9 (since many things seem to be getting only worse and less stable in MAC OS land :).
- netheril96 11y agoThe latest piece is 10.11.
- deleted 11y ago[deleted]
- kawera 11y agoI'm running the latest (build: 6072) on 10.10.5.
- zathros 11y agoIt's hard to say until one of the Docker 4 Mac employees [hopefully] steps in. I'm also keen to find this out!
- nzoschke 11y agoThere's a genuine question in there that would be easier to get an answer without your judgements... OS X Hypervisor Framework, which this uses via xhyve, is only available starting on OS X Yosemite v10.10. https://developer.apple.com/library/mac/releasenotes/MacOSX/WhatsNewInOSX/Articles/MacOSX10_10.html https://developer.apple.com/library/mac/releasenotes/MacOSX/...
- torpy 11y agoHypervisor.framework (which xhyve depends on) was only added in 10.10, it's unlikely to work in anything less than that.
- aduermael 11y agoThe minimum OS X version to run Docker for Mac is 10.10.3 :)
- trollian 11y agoI don't get it. Why is Docker for Mac running Linux containers? Shouldn't it be for OSX containers?
- dguaraglia 11y agoNot really, unless you are going to be running OS X in your server. You want the container in your development machine to be as close to the one that'll run in production as possible to minimize "Works on my Machine" issues.
- swozey 11y agoBecause most of us develop on OSX and production is Linux.
- mnutt 11y agoI started playing around with Docker for Mac in an attempt to get my whole dev environment set up in Docker. It was really slick, especially being (re-)introduced to docker-compose which makes connecting containers very easy. There is a ton of potential there. My biggest challenge is that the documentation hasn't quite caught up to all of the interesting stuff that is going on. I'd certainly welcome some more opinionated answers for how to develop on Docker. Specifically: how to not run apps as root, as almost all examples use root and permissions are annoying if you don't do so; how to use docker containers for both dev and prod; best practices for getting ssh key access into a container during the build phase. But much of it Just Works at this point, I'm pretty confident that the best practices will catch up in time.
- TerryADavis 11y agoThere will be a fine imposed on manufactures of all x86_64 bit systems that do not run TempleOS. They must do a factory recall on their BIOS and pay a fine until it is in compliance. Write a USB driver if necessary. It's God nigger, you lose. God says... possession however they wandering fuller released remainest reproves stick stable audience tcosa11 buzzing believes instinctive below weights punish passible enlightening jesus temporal emptinesses physical fool implied unreal lanthorn severer partake oft sanctified
- mwcampbell 11y agoSounds promising. But I'd like to see Docker work with Microsoft to produce something even better for Windows, using the new Windows Subsystem for Linux (WSL). With WSL, Docker and Microsoft should be able to bring Linux-based Docker containers to Windows, without the performance hit and resource fragmentation that inevitably come with virtualization. True, WSL doesn't support namespaces and cgroups, but IIUC, Windows itself has equivalent features. So the Docker daemon would run under Windows, and would use a native Windows API to create containers, each of which would use a separate WSL environment to run Linux binaries. I don't know how layered images would be supported; Microsoft might have to implement a union filesystem.
- zxcvcxz 11y agoWhat is the use case though? What would be even better is if MS created a "windows container" that could run under Linux, then you could just ditch windows all together. I don't see big companies using something this hackish for containers that are running on servers anyway. For working on the desktop this might come in handy for devs, but honestly I think MS should focus their energy on something else.
- derefr 11y agoKeep in mind, Linux containers work since there's only one Linux kernel, and the rest of the OS is just files that can be stuck into the container. Anything that can pretend to be the Linux kernel (like a Solaris "branded zone") can run a Linux container. But you'd actually need many different kinds of "Windows container", since Windows actually has an abundance of kernel-exposed runtimes: the DOS VMM, Win16 with cooperative threading, Win32 with COM, WinNT, WinRT, the POSIX subsystem... You could certainly write a particular container runtime to allow a specific type of app (e.g. WinRT apps) to run, and that might be enough to enable developers going forward to target both Windows and Linux hosts for their Windows apps. But that would hardly be Windows, in the sense of being able to have your app launch arbitrary other "Windows" processes in the same container the way that Docker apps do with arbitrary Linux processes. Having all the machinery to simulate all the vagueries that have changed in the Windows OS core over time, such that one container could contain any and all Windows processes running together, would be a much harder challenge. I don't know what the combined surface area of all the runtimes the Windows kernel exposes looks like, but I can't imagine it'd be something even MS could re-implement as a Linux-kernel translation layer easily (especially considering all the compatibility shims each layer provides to make specific apps work, that would have to be carried forward into the translation layer.)
- joshvm 11y agoVMWare Fusion does a few extremely useful things that Docker doesn't - for instance it can hook into an existing Boot Camp install and load it as a VM. It may be a bit heavy for the (Linux) applications Docker excels at, but for me it's worth the money just for the Windows VM support.
- vhiremath4 11y agoAnybody know if there is a full guide for the migration from toolbox to Mac beta? I've installed the beta, but I'm wondering if there's old cruft that I'll need to uninstall to be completely on the new.
- STRML 11y agoI'm also in the beta, and I like it a lot. It's functionally equivalent to `dlite`, which Nathan LaFreniere has done an extremely good job on. He deserves massive credit for making OSX Docker dev bearable and for providing the inspiration for "Docker for Mac". A few issues I've seen: 1. I cannot believe they are using `docker.local`. This hostname will cause nothing but trouble for years to come. DON'T USE `.local`! Apple has decided that `.local` belongs to Bonjour, and due to a longstanding bug with their IPv6 integration, you can expect to see a 5-10s random delay in your applications as Bonjour searches your local network to try to resolve `docker.local`. Yeah, you put it in your `/etc/hosts`? Doesn't matter. Still screws up. Use `docker.dev` or `local.docker`. [http://superuser.com/questions/370559/10-second-delay-for-local-tld-in-mac-os-x-lion http://superuser.com/questions/370559/10-second-delay-for-lo...] 2. -beta8 is screwed up. It won't bind to its local ip anymore. The only option is to port forward from localhost. Unfortunately, Docker isn't offering a download of beta7. Thankfully, I still had the DMG around. 3. The polish is still lacking. Most menu bar items ask you to open up something else. 4. Why "Docker for Mac"? Couldn't the team think of a less confusing name? Now I have "Docker" running "docker". Otherwise - great projects, and again, much credit to @nlf for `dlite`. If you're not part of the beta, check out dlite (https://github.com/nlf/dlite https://github.com/nlf/dlite). It's at least as good as Docker for Mac.
- themartorana 11y agoHave you (or someone) filed a ticket? It's beta, after all. But yeah, good catch.
- cpuguy83 11y agoI do not work on this project, but perhaps this was the move to have the "VPN compatibility mode" enabled by default. Have you tried going to the settings menu and disabling?
- akshatpradhan 11y agoI thought we should be using .local because it was specified in RFC 6762. https://en.wikipedia.org/wiki/.local https://en.wikipedia.org/wiki/.local
- yeahk 11y agoDocker 4 Mac is awesome - however running into some issues with running `npm install`, with the container not completing I think due to CPU issues.
- dchuk 11y agoSo if I'm using dlite now, and I want to transition to Docker for Mac once I get into the Beta...what do I need to do? Fully uninstall dlite? Can they be run side by side? (assuming no)
- justincormack 11y agoI am not sure if they conflict, there may be an issue with them both trying to use the same docker socket though, but you can probably just start one after you stop the other.
- mschuster91 11y agoUntil Dockrap (and its various predecessors and friends) are compatible with IT depts setting their VPN config to disallow local network access, fuck all that hipster stuff and use good old self-configured services. Hipster bullshit that can't be used in any org that remotely takes care of their network (hint: any big corporation will mandate this by contracts with huge liability figures in the contracts). To the users: if you can't configure a simple local web server for development, you should not be qualified to develop a web service. Period. (Hint: Apache and PHP is included in OS X, but a bit outdated to be fair - but you can install/upgrade to a OAMP stack using MacPorts in MINUTES)
- hbogert 11y agoI know how macports works. I just don't want my whole team to deal with small differences which cause the dreaded "works on my machine". I'm not saying docker is perfect, but at least those guys[Docker inc.] are trying to make a shift to something at least a bit more immutable then what you are suggesting.
- bel_marinaio 11y agoBigco needs to get with it or get out of the way. Whenever a bloated, antiquated dinosaur is replaced by a newer, smarter company the sun shines a little brighter in my world.
- mschuster91 11y ago> Whenever a bloated, antiquated dinosaur is replaced by a newer, smarter company the sun shines a little brighter in my world. And whenever a "newer, smarter company" disregards fundamental IT security practices and gets hacked, the sun shines a little brighter in my world. Security is an afterthought (if a thought at all) in many hipster operations, and it's about time someone fucks up so badly that IT security is priority #1 from the beginning.
- brodsky 11y agoMight want to ease up on the chili peppers: the butthurt is unbearable.
- partiallypro 11y agoI have Docker for Windows Beta, but when I've installed it on my Surface Pro 3, it immediately caused the device to get stuck in a BSOD loop. I think it has something to do with Hyper-V and connnected standby but I'm not 100% sure. Wasn't able to find an answer because it's so early on. I really want to get into Docker, but that bug has killed any possibility of me adopting it as of right now. I did install it on a desktop (which I lightly use) and it worked fine. With the new Windows 10 Insider build on that desktop though, Docker constantly is asking permission to run. Anyhow, I really hope someone does a good overview of Docker for Windows beta, as well as the Ubuntu environment within Windows 10 now...Seems like OSX gets all of the dev love, so I'm wish and hoping for a really nice Windows overview. As I am currently having a hard time with both. Neither, as of right now, work well.
- michaK 11y agoI'm sorry for your laptop experience and glad you got it working on your desktop. There are good chances it is related to Hyper-V but would need more info to debug. Could you send us your logs to beta-feedback@docker.com? Docker for Windows still requires elevated privileges to start. This will be addressed in a couple of releases
- so0k 11y agoif you want a more technical review of the Windows beta, read this: http://docker-saigon.github.io/post/Docker-Beta/ http://docker-saigon.github.io/post/Docker-Beta/ But note that beta 8 was released a few days after that review and already introduced some changes. Also, for the Windows beta, it very much is still a beta.
- nerdwaller 11y agoMy only issues so far have been: 1) the docker.local issue on mac (as a fee others have mentioned) and 2) I still get some vpn issues with Cisco Anyconnect
- landmark2 11y agoI think docker for Mac is the way to go but, until disk performance is not up to scratch, I suggest you have a look at dinghy (https://github.com/codekitchen/dinghy https://github.com/codekitchen/dinghy) it just works too and it's 10x faster than docker-machine with vmware/virtualbox shares (uses NFS).
- FloNeu 11y agoAnyone has had a chance to try the windows beta? Would be interested to read about that to. thanks in advance...
- so0k 11y agoif you want a more technical review of the Windows beta, read this: http://docker-saigon.github.io/post/Docker-Beta/ http://docker-saigon.github.io/post/Docker-Beta/ But note that beta 8 was released a few days after that review and already introduced some changes.
- hbogert 11y agoThe only downside of using virtualization I keep running into is diskspace usage, which only grows for the VM, and it never shrinks.
- fpoling 11y agoI got an impression that this is not that useful for development due to very weak networking support. For example I use a single docker installation in a VM to test several unrelated projects with all of them providing a web server on a port 80/443. I do not want to remap ports not to deviate from the production config. Instead I added several IP to the VM and exposed relevant containers on own IP addresses. Then for testing I use a custom /etc/hosts that overwrites production names with VM's IP addresses. This works very nicely. But I do not see that something like this is possible with "Docker for Mac".
- tmaly 11y agoI signed up for the Beta, but I have not gotten access yet. I was hoping to see a walk through of an example on your review so I could gauge how easy it is compared to the old docker setup on osx.
- deleted 11y ago[deleted]