Ditching Docker for Desktop on macOS

Docker for Desktop has changed their licensing forcing anyone not willing to pay to go back to the CLI tools. I hit some roadbumps removing the UI and installing the CLI tools. Here’s what I did to overcome them on macOS Big Sur.

Remove the GUI

Install Docker and VirtualBox

> brew install docker-machine docker virtualbox

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

There are other articles out there but none of them worked for me to force that prompt. In order to force the Allow prompt in the Security Settings, this is what I had to do:

  1. Reset the security protection configuration
> sudo csrutil clear

2. Clear the kext cache

> sudo kextcache -clear-staging

3. Reboot into Recovery (Hold CMD-R during restart)

4. Open Disk Utility

5. Mount the Hard Disk

6. Close Disk Utility

7. Open the Terminal (still in Recovery)

8. Add the VirtualBox developer as a trusted kernel developer

> /usr/sbin/spctl kext-consent add VB5E2TV963

9. Reboot

At this stage you should see pop-ups telling you that someone has messed with the security configuration. You may also need to reboot again. If you try and run the VirtualBox LaunchDaemon that should trigger the Allow prompt in Settings.

> sudo /Library/Application\ Support/VirtualBox/LaunchDaemons/VirtualBoxStartup.sh restart

Go to System Preferences > Security & Privacy Then hit the “Allow” button to let Oracle (VirtualBox) load.



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