Fails to create a new Docker machine

0

I am trying to run these commands to create a new Docker machine:

docker-machine create --driver virtualbox mymachine
docker-machine restart mymachine
eval "$(docker-machine env mymachine)"

However, I keep getting this error:

(dockered) Creating a new host-only adapter produced an error: /usr/local/bin/VBoxManage hostonlyif create failed:
(dockered) 0%...
(dockered) Progress state: NS_ERROR_FAILURE
(dockered) VBoxManage: error: Failed to create the host-only adapter
(dockered) VBoxManage: error: VBoxNetAdpCtl: Error while adding new interface: failed to open /dev/vboxnetctl: No such file or directory
(dockered) VBoxManage: error: Details: code NS_ERROR_FAILURE (0x80004005), component HostNetworkInterfaceWrap, interface IHostNetworkInterface
(dockered) VBoxManage: error: Context: "RTEXITCODE handleCreate(HandlerArg *)" at line 94 of file VBoxManageHostonly.cpp
(dockered)
(dockered) This is a known VirtualBox bug. Let's try to recover anyway...

I have uninstalled and reinstalled both Docker and VirtualBox to try and fix this as per other StackOverflow questions, but nothing works. Please let me know how to fix this?

macos
virtualbox
docker-machine
asked on Stack Overflow Sep 19, 2020 by Vinny Jacobsen • edited Sep 20, 2020 by Konrad Botor

0 Answers

Nobody has answered this question yet.


User contributions licensed under CC BY-SA 3.0