Ditching Docker for Desktop on macOS

Remove the GUI

First, remove the GUI by running the Uninstall in the Troubleshooting section. This is better than dragging the Docker.app to the Trash because it cleans up the LaunchDaemon and other crap.

Install Docker and VirtualBox

Installing the CLI tools for Docker can be done in a bunch of ways but I used brew:

> brew install docker-machine docker virtualbox

The Problem

Next you need to create a docker machine vm and this is where I hit the problem:

> docker-machine create — driver virtualbox default…a bunch of messages…VBoxNetAdpCtl: Error while adding new interface: failed to open /dev/vboxnetctl: No such file or directory

The Solution

The key to the solution is getting VirtualBox to trigger the security exception prompt in macOS. If you don’t Allow the kernel extension for VirtualBox in the General tab of Security in Settings, then the LaunchDaemon won’t load and can’t create the Host adapter. I still don’t know why the the prompt didn’t come up for me but I think it had something to do with having it previously installed.

  1. Reset the security protection configuration
> sudo csrutil clear
> sudo kextcache -clear-staging
> /usr/sbin/spctl kext-consent add VB5E2TV963
> sudo /Library/Application\ Support/VirtualBox/LaunchDaemons/VirtualBoxStartup.sh restart



Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Andres March

Andres March

bringing science and data together