Docker Community Forums

Share and learn in the Docker community.

How to create a (virtualbox) machine with a bridged network adaptor


(Craigld) #1

Hi all,

I’m using Docker Toolbox on Windows 7.
When I create a new machine I get a Virtualbox VM with two network adaptors:

  1. NAT
  2. Virtualbox Host only

I’d like for one of the adaptors to be bridged, this is so that each docker-machine gets a unique IP address on my network allowing them to be accessed by other hosts on the network.

If I shutdown and modify the NAT adaptor to be bridged, then restart the machine then the CLI will get stuck on “Waiting for an IP…”, even though the IP address associated with the machine is actually the one for the Virtualbox Host only adaptor, and I can ping it.

Can anyone help me with this?

Craig