kitematic icon indicating copy to clipboard operation
kitematic copied to clipboard

Add integration for one or many external Docker hosts (different docker-machine providers)

Open develar opened this issue 11 years ago • 115 comments

I cannot use VirtualBox because I don't have enough memory for it — Parallels Desktop is much better and I have configured vagrant box. https://github.com/Parallels/vagrant-parallels/issues/115

So — I just want to open Kinematic and Kinematic should not install VirtualBox/boot2docker — use existing installation (DOCKER_HOST env).

develar avatar Mar 12 '15 14:03 develar

I'd be interested in this to enable our use of vmware fusion.

ryansch avatar Mar 12 '15 15:03 ryansch

:+1: I really dig this one!

proudlygeek avatar Mar 12 '15 15:03 proudlygeek

@ryansch Exactly. Regardless of performance (Vmware is closer, http://www.tekrevue.com/parallels-10-fusion-7-virtualbox-benchmark/), vagrant allows to customize VM more precisely (for example, by default, VirtualBox consumes more than 1GB RAM — vagrant parallels box just restricted to 512 MB and it is enough).

develar avatar Mar 12 '15 15:03 develar

:+1:

hadronzoo avatar Mar 12 '15 15:03 hadronzoo

:+1:

caseywebdev avatar Mar 12 '15 15:03 caseywebdev

I would vote for supporting VMware Fusion with docker machine.

tgoeke avatar Mar 12 '15 16:03 tgoeke

:+1:

mainiak avatar Mar 12 '15 17:03 mainiak

+1 for the ability to specify a driver for docker-machine!

dougborg avatar Mar 12 '15 18:03 dougborg

Looks like you can work around this for now by using docker-machine to create and configure a box with whatever driver you like. Just call it dev and it looks like Kitematic will just use that one.

After installing kitematic and starting it up for the first time:

# Kitematic creates a virtualbox vm via docker-machine - this is hard-coded for now.
$ docker-machine ls
NAME           ACTIVE   DRIVER         STATE     URL                          SWARM
dev            *        virtualbox     Running   tcp://192.168.99.100:2376

# close kitematic

# remove the default vm
$ docker-machine rm dev
$ docker-machine ls
NAME           ACTIVE   DRIVER         STATE     URL                          SWARM

# create a new `dev` machine with whatever driver you like:
$ docker-machine create dev -d vmwarefusion
INFO[0000] Creating SSH key...
INFO[0000] Creating VM...
INFO[0000] Starting dev...
INFO[0000] Waiting for VM to come online...
INFO[0042] "dev" has been created and is now the active machine.
INFO[0042] To point your Docker client at it, run this in your shell: $(docker-machine env dev)
$ docker-machine ls
NAME   ACTIVE   DRIVER         STATE     URL                          SWARM
dev    *        vmwarefusion   Running   tcp://192.168.133.132:2376

# start Kitematic - it will say it is "Starting Docker VM",
# but it is really just using the one you created:

$ docker-machine ls
NAME   ACTIVE   DRIVER         STATE     URL                          SWARM
dev    *        vmwarefusion   Running   tcp://192.168.133.132:2376 

You can now start containers, etc using the Kitematic UI and they will use the dev vm you created manually.

So far the only thing I have found that doesn't work is using the Kismatic UI to browse/edit files you have mounted as volumes in the container. They must be setting that up using a mount from the virtualbox vm created with vbox commands, or something along those lines. That is one limitation for the work-around and something else that will have to be implemented for each driver or in a more generic way.

dougborg avatar Mar 12 '15 18:03 dougborg

Using the manual method is fine - except I don't want to install VirtualBox at all, it messes with networks etc, so it would be nice to be able to skip the VB install.

tgoeke avatar Mar 12 '15 18:03 tgoeke

Yep. Good point. I tried uninstalling VirtualBox, but Kitematic installed it again the next time it started up.

dougborg avatar Mar 12 '15 19:03 dougborg

Just went to try it and saw it started downloading Virtualbox without even prompting - had to quickly kill it off.

I already have boot2docker and docker machine setup with VMware Fusion which is a lot faster and more reliable than Virtualbox - it would be nice if Kitematic recognised this.

sammcj avatar Mar 12 '15 22:03 sammcj

Hi all. Thanks for creating this issue!

The good news is that we use docker-machine under the hood, which is quickly adding support for different providers such as VMware fusion etc.

I'll mark this as a feature for adding different providers, but also understanding that it's inconvenient to automatically install VirtualBox if that's not what's expected.

jmorganca avatar Mar 13 '15 01:03 jmorganca

Just to follow up on my earlier comment, it looks like the host volume support is provided by docker machine host drivers and host volume mounting is not yet supported by the vmwarefusion driver: https://github.com/docker/machine/issues/641.

dougborg avatar Mar 17 '15 15:03 dougborg

@dougborg Is host volume mounting required to get kitematic to work? I wrote the Parallels Desktop driver and is eager to add support for it in kitematic but it currently lacks host volume mounting because of legal issues with the drivers.

Is there any work done on abstracting out the "driver" layer?

rickard-von-essen avatar Mar 17 '15 17:03 rickard-von-essen

@rickard-von-essen I don't get your note about parallels. Host volumes works perfectly – specified in my vagrant file (config.vm.synced_folder "/Users/develar", "/Users/develar").

develar avatar Mar 17 '15 18:03 develar

@develar But not in docker-machine + boot2docker.iso since it requires that boot2docker.iso to include Parallels Tools which is currently not supported by the EULA see 1.7. Parallels Tool on http://www.parallels.com/about/legal/eula/ .

rickard-von-essen avatar Mar 17 '15 18:03 rickard-von-essen

@rickard-von-essen: I think host volume support is important in the context of this user story / feature: adding support for other docker-machine providers. While I am sure there are some situations where mounting volumes from the OSX host is not needed, I find it is necessary in most of the work I do with Docker. Kitematic already has a nice interface built up around mounting and viewing contents of host volumes and I think it would be a shame for those features to be unavailable if you use another provider. If you provide support for other providers without the host volume mounting feature, I suspect it would confuse users.

dougborg avatar Mar 18 '15 15:03 dougborg

   + 1 on this one !!!  On Mac Os x nothing compare to vmware Fusion when using virtualization : 
  • Speed
  • Relability
  • Rock Solid Feature
  • etc

It used to be only Virtual Box around me, But nowadays i see a lot of people now swithing to Fusion for all the reason mention above . It's a growing user base of Fusion on Mac OS happening . And Yes please Host Volume support is a must for any productive workflow between Host-VM-Docker

jamroks avatar Mar 30 '15 12:03 jamroks

Please add this!

ghost avatar Apr 21 '15 13:04 ghost