Test container error when starting docker from macbook m1

0

I using macbook m1 and i have error when using test container from docker. When i start project using docker it throw me error

Docker machine "" does not exist

I install virtualbox using command :brew install virtualbox --cask

When i install success and start it throw me exception :

(default) Check network to re-create if needed...
(default) Creating a new host-only adapter produced an error: /usr/local/bin/VBoxManage hostonlyif create failed:
(default) 0%...
(default) Progress state: NS_ERROR_FAILURE
(default) VBoxManage: error: Failed to create the host-only adapter
(default) VBoxManage: error: VBoxNetAdpCtl: Error while adding new interface: failed to open /dev/vboxnetctl: No such file or directory
(default) VBoxManage: error: Details: code NS_ERROR_FAILURE (0x80004005), component HostNetworkInterfaceWrap, interface IHostNetworkInterface
(default) VBoxManage: error: Context: "RTEXITCODE handleCreate(HandlerArg *)" at line 95 of file VBoxManageHostonly.cpp
(default) 
(default) This is a known VirtualBox bug. Let's try to recover anyway...
Error setting up host only network on machine start: The host-only adapter we just created is not visible. This is a well known VirtualBox bug.

Now i cannot running testContainer because it required Docker machine. I cannot start because VirtualBox cannot running ? How to run it

docker
docker-machine
apple-m1
testcontainers
asked on Stack Overflow May 10, 2021 by BaoTrung Tran

1 Answer

2

Try Docker for Mac.

Also, make sure that you're using the latest version of Testcontainers and that your JNA dependency is 5.7.0 or newer.

answered on Stack Overflow May 10, 2021 by bsideup

User contributions licensed under CC BY-SA 3.0