docker-archive/docker-snap

docker machine `virtualbox` driver support?

AcidFlow opened this issue · 2 comments

Hello,

First thanks for taking the time to create a snap for docker.
I am using this snap package for a few weeks now and everything was perfect. However today I wanted to play with docker.machine locally and I therefore looked at the docker documentation.
I installed virtualbox on my machine, and then I ran

$ docker.machine create -d virtualbox default

And I got the following error:

Error with pre-create check: "VBoxManage not found. 
Make sure VirtualBox is installed and VBoxManage is in the path"

The problem is, VBoxManage is in my path, however I think that due to the strict confinement policy the snap cannot access this binary (and I guess there is no interfaces created yet for it).

Am I missing something or is it currently not supported?


Steps to reproduce

  • Install virtualbox
  • Install docker snap
  • Try to create a machine using: docker.machine create -d virtualbox default

System info:

Infos:

  • snap 2.35.2
  • snapd 2.35.2
  • series 16
  • linuxmint 19
  • kernel 4.15.0-36-generic
  • docker snap version : beta - 18.06.1-ce (321)

Hi, unfortunately the VirtualBox driver is not supported in the snap, as to support this either the docker snap would have to be classic (or alternatively docker-machine would have to be it's own snap and also be classic) and use the VBoxManage command that is on your $PATH outside of snap confinement, or we would have to bundle basically all of VirtualBox inside the snap, which currently is not feasible due to both design and technical constraints of snapd.

Thanks for your answer!

I better understand the snap limitations / design now. In the end I decided to re-install docker from apt-get as I needed this feature.