Minikube: Add support for running with Docker for Mac and Windows

Created on 22 Jun 2016  ยท  7Comments  ยท  Source: kubernetes/minikube

It would be nice if we could support Docker for Mac and Windows.

Most helpful comment

Thanks @dlorenc didn't see the other issue. Now closing..... I've got https://github.com/kubernetes/minikube/issues/99 problems and a kube ain't one. ๐Ÿ‘

All 7 comments

or we could try get hyperkube to run inside Docker for Mac and Windows as a regular docker container?
http://kubernetes.io/docs/getting-started-guides/docker/

kubernetes-anywhere (https://github.com/kubernetes/kubernetes-anywhere)
has some ways to run Kubernetes on Docker for Mac, but it'd be awesome to
get hyperkube properly working on Docker for Mac.

Looks like I can access the VM easy enough.

$ ls -l ~/Library/Containers/com.docker.docker/Data/com.docker.driver.amd64-linux/tty
lrwxr-xr-x  1 preilly  staff  12 Jun 22 11:27 /Users/preilly/Library/Containers/com.docker.docker/Data/com.docker.driver.amd64-linux/tty -> /dev/ttys000
$ screen /dev/ttys000
[detached]

This should be fairly easy to do...

Freeing unused kernel memory: 1384K (ffff880001aa6000 - ffff880001c00000)
tsc: Refined TSC clocksource calibration: 1199.135 MHz
clocksource: tsc: mask: 0xffffffffffffffff max_cycles: 0x1148ea92c58, max_idle_ns: 440795258892 ns

   OpenRC 0.21.723ca9e is starting up Linux 4.4.13-moby (x86_64)

 * Mounting /proc ... [ ok ]
 * Mounting /run ... * /run/openrc: creating directory
 * /run/lock: creating directory
 * /run/lock: correcting owner
 * Caching service dependencies ... [ ok ]
 * Mounting devtmpfs on /dev ... [ ok ]
 * Mounting /dev/mqueue ... [ ok ]
 * Mounting /dev/pts ... [ ok ]
 * Mounting /dev/shm ... [ ok ]
 * Mounting /sys ... [ ok ]
 * Mounting security filesystem ... [ ok ]
 * Mounting debug filesystem ... [ ok ]
 * Mounting fuse control filesystem ... [ ok ]
 * Mounting persistent storage (pstore) filesystem ... [ ok ]
 * Mounting cgroup filesystem ... [ ok ]
 * Starting busybox mdev ... [ ok ]
 * Loading hardware drivers ... [ ok ]
 * Checking local filesystems  ... [ ok ]
 * Remounting filesystems ... [ ok ]
 * Mounting local filesystems ... [ ok ]
 * Setting system clock using the hardware clock [UTC] ... [ ok ]
 * Configuring host block device ... [ ok ]
 * Activating swap devices ... [ ok ]
 * Configuring host settings from database ... [ ok ]
 * Configuring kernel parameters ... [ ok ]
 * Creating user login records ... [ ok ]
 * Wiping /tmp directory ... [ ok ]
 * Starting networking ... *   lo ... [ ok ]
 *   eth0 ... [ ok ]
 *   eth1 ...ip: ioctl 0x8913 failed: No such device
 [ !! ]
 * Testing DNS resolution ... [ ok ]
 * Setting hostname ... [ ok ]
 * Starting busybox klogd ... [ ok ]
 * Starting busybox syslog ... [ ok ]
 * Initializing random number generator ... [ ok ]
 * Starting busybox acpid ... [ ok ]
 * Configuring binfmt misc ... [ ok ]
 * Starting chronyd ... [ ok ]
 * Starting FUSE socket passthrough ... [ ok ]
 * Setting up proxy port service ... [ ok ]
 * Starting docker socket vsock passthrough ... [ ok ]
 * Starting Docker ... [ ok ]
 * Checking system state ...2016/06/22 19:33:12 Failed to bind to hvsock port: 0x61

โœ“ Drive found: vda
โœ“ Drive mounted: /dev/vda2 on /var type ext4 (rw,relatime,data=ordered)
โœ“ Network connected:           inet addr:192.168.65.2  Bcast:192.168.65.7  Mask:255.255.255.248
โœ“ Process transfused running
โœ“ Process dockerd running: /usr/bin/dockerd --pidfile=/run/docker.pid -H tcp://0.0.0.0:2375 -H unix:///var/run/docker.sock
โœ“ Process containerd running: docker-containerd -l unix:///var/run/docker/libcontainerd/docker-containerd.sock --shim docker-containerd-shim --metrics-interval=0 --start-timeout 2m --state-dir /var/run/docker/libcontainerd/containerd --runtime docker-runc --debug
โœ“ Docker daemon working
โœ“ Diagnostics server running: /usr/bin/diagnostics-server
 * Adjusting oom killer settings ... [ ok ]

Welcome to Moby alpha
Kernel 4.4.13-moby on an x86_64 (/dev/ttyS0)

                        ##         .
                  ## ## ##        ==
               ## ## ## ## ##    ===
           /"""""""""""""""""___/ ===
      ~~~ {~~ ~~~~ ~~~ ~~~~ ~~~ ~ /  ===- ~~~
           \______ o           __/
             \    \         __/
              \____\_______/

moby login:

Hey,

Running minikube inside a system based on Docker for Mac is definitely on our roadmap. We're tracking this work over in https://github.com/kubernetes/minikube/issues/99. Would you mind posting your work over there, and closing this as a duplicate?

Thanks @dlorenc didn't see the other issue. Now closing..... I've got https://github.com/kubernetes/minikube/issues/99 problems and a kube ain't one. ๐Ÿ‘

@preillyme what happened to the and Windows part of the issue :) ?

Agreed, there should be a new issue for Docker for Windows support - ideally something that works nicely from within the new Windows Subsystem for Linux, as well.

Was this page helpful?
0 / 5 - 0 ratings