Search code examples
dockervirtualbox

"VirtualBox is configured with multiple host-only adapters with the same IP" when starting docker


I am trying to run Docker on an old Mac OS.

I get this error:

Error setting up host only network on machine start: VirtualBox is configured with multiple host-only adapters with the same IP "192.168.99.1". Please remove one


Solution

  • The issue came from having run docker on two different sessions on my machine.

    To fix it I ran: VBoxManage list -l hostonlyifs to identify adapters, and then removed the one I didn't need anymore:

    VBoxManage hostonlyif remove vboxnet1
    

    Alternatively, if you want to be able to run Docker from two different sessions, you can change the IP address of each adapter:

    • Go to File -> Host Network Manager
    • Change the IP address of one of the adapters