Live data from Hacker News

Docker for Mac and Windows Beta

blog.docker.com

141–150 of 250 posts

Re: Docker for Mac and Windows Beta

#141
post #54

Can someone explain in simple terms how Docker for Windows is different from Application Virtualization products like VMware ThinApp, Microsoft App-V, Spoon, Cameyo, etc? Also, why does it require Hyper-V activated in Windows 10? I found this: https://docs.docker.com/machine/overview/ but I don't understand if you need separate VMs for separate configurations or they have a containerization technology where you are a…

Docker uses LXC containers. In Linux, these aren't VMs and are light weight user-land separations that use things like cgroups and lots of really special kernel modules for security. Unfortunately, this means Docker only runs on Linux .. not even Linux...special Docker Kernel Linux (all the features they need are in the stock Kernel tree, but it's still a lot of modules). In Windows/Mac, you still need to run in a vi…

There are no custom kernel modules, everything is in a stock kernel since 3.10 (which not-so-coincidentally is the minimum supported kernel version).

Containers are run with whatever user you tell it to run as, the default is root because that's the only guarantee.

LXC is also something different. LXC is a set of userland tooling to interact with cgroups and namespaces (which docker used to exec out to). LXC != Linux containers (and indeed there isn't really such a thing as a container like there is a zone or a jail on Solaris and BSD respectively, it's made up) Also again, no custom kernel modules on BSD.

Re: Docker for Mac and Windows Beta

#142
post #54

Can someone explain in simple terms how Docker for Windows is different from Application Virtualization products like VMware ThinApp, Microsoft App-V, Spoon, Cameyo, etc? Also, why does it require Hyper-V activated in Windows 10? I found this: https://docs.docker.com/machine/overview/ but I don't understand if you need separate VMs for separate configurations or they have a containerization technology where you are a…

Docker uses LXC containers. In Linux, these aren't VMs and are light weight user-land separations that use things like cgroups and lots of really special kernel modules for security. Unfortunately, this means Docker only runs on Linux .. not even Linux...special Docker Kernel Linux (all the features they need are in the stock Kernel tree, but it's still a lot of modules). In Windows/Mac, you still need to run in a vi…

Docker on Windows (with native Windows containers) is also a very real thing and will ship with the next Windows Server release (you can download a technical preview from Microsoft now).

Re: Docker for Mac and Windows Beta

#143
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…

In my comment I wanted to express the same, the whole Boot2docker solution seem too hacky for non Docker enthusiastic devs. I had hard time trying to convincing co-workers to use docker for development environment, mainly because filesystem, and the user experience. You have to really like docker to go thru all the setup. I did it but I can see why my coworkers didn't.

Agreed. We gave up on it and created a local beefy server that we shared for docker testing, but then we have port collisions and the other problems that come along with sharing.

Native is better and I'm very excited for this.

Re: Docker for Mac and Windows Beta

#144
post #81

To be entirely honest, I'm quite concerned about your choice on choosing Alpine as the base distro. Their choice of using musl over glibc might be cool but if you have to put old libs inside a container, it's hell (if not entirely incompatible).

The use of musl on the host, outside the container, has absolutely no impact on the choice of libc inside the container. The team chose alpine because it's lightweight, well-maintained and security-oriented. You are free to use any distro you want inside the container, and that will never change.

apologies, you are absolutely right. Has been a very long day :)

Re: Docker for Mac and Windows Beta

#146

So, let's say if I am developing a Java EE app under windows with eclipse and want to use docker container for my app, how do I go about it?

https://github.com/mgreau/docker4dev-tennistour-app is a good example of using Java EE 7 / Angular application to show how to use Docker for Java Development

Arun Gupta wrote many excellent posts on how to use Docker to build Java apps: http://blog.arungupta.me/docker-tooling-eclipse-video/ on Eclipse tooling for Docker, http://blog.arungupta.me/deploy-wildfly-docker-eclipse/using Wildfly

https://github.com/chanezon/docker-tips/tree/master/orchestr... is an example leveraging Docker Compose and swarm for a Spring Boot application.

I hope these helps get you started using containers for development.

Re: Docker for Mac and Windows Beta

#147
post #98

Earlier quoted context omitted.

When I search for xhyve it returns a project for OS X, it would be interesting to know the specific Windows technologies also.

As mentioned in the linked blog post, they're using Hyper-V as their hypervisor on Windows (it's a direct counterpart to xhyve on OSX, except entirely built into the OS). The Docker for Mac and Windows beta does not use VirtualBox on either platform.

> it's a direct counterpart to xhyve on OSX, except entirely built into the OS

xhyve on Mac OS X is a very thin wrapper around Hypervisor.framework which itself is "entirely built into the OS".

Re: Docker for Mac and Windows Beta

#148
post #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.

We've tried Docker for Mac with John Lees-Miller's excellent NodeJS in container development example http://jdlm.info/articles/2016/03/06/lessons-building-node-a... and it works great!

Re: Docker for Mac and Windows Beta

#149
I've been running docker-machine with a VMWare Fusion VM with VT-x/EPT enabled and am using KVM inside my containers to dev/test cloud software. I'd be interested to know if I can still get the performance of Fusion and the support I need for nested virtualization out of Docker for Mac.
Post reply on HN