machine icon indicating copy to clipboard operation
machine copied to clipboard

creating "bridged" or "host-only" vm's with machine?

Open myfear opened this issue 11 years ago • 67 comments

I was wondering, if anybody can point me to an instruction how to create a vm with either a bridged or a host-only eth0 NIC on the host.

Creating a standard machine with "docker-machine create --driver virtualbox mymachine" and changing Adapter 1 to bridged or host-only doesn't work afterwards. (Which totally makes sense to me).

In some scenarios, I'd actually love to have the docker machine vm accessible by IP address (and not only port forwarding) from my windows 7 host.

--virtualbox-hostonly-cidr only affects the inter container Adapter 2 AFAIK.

myfear avatar Jul 08 '15 10:07 myfear

Agreed! +1

InfoSec812 avatar Jul 08 '15 16:07 InfoSec812

The VM should come up on a host-only network by default, and the IP address should be accessible from the docker-machine ip command.

nathanleclaire avatar Jul 20 '15 17:07 nathanleclaire

It doesn't. How can I help to track that down further? On Jul 20, 2015 7:37 PM, "Nathan LeClaire" [email protected] wrote:

The VM should come up on a host-only network by default, and the IP address should be accessible from the docker-machine ip command.

— Reply to this email directly or view it on GitHub https://github.com/docker/machine/issues/1491#issuecomment-122963314.

myfear avatar Jul 20 '15 19:07 myfear

I'm running into a similar problem. I want to add bridged (not host-only which is already there by default) networking and once I add the bridged adaptor to the virtualbox VM docker-machine can no longer connect. More info in my stackoverflow question.

chetstone avatar Sep 15 '15 22:09 chetstone

+1 on wanting to use bridge mode

lbustelo avatar Oct 01 '15 18:10 lbustelo

+1

jcfigueiredo avatar Oct 08 '15 15:10 jcfigueiredo

+1 currently running into some 'clever' client issues with Couchbase and pointing the client at non forwarded addresses

arussellsaw avatar Oct 14 '15 12:10 arussellsaw

+1 not having this capability makes it really tough to access containers from the LAN if running on a Mac.

aaronbbrown avatar Oct 19 '15 11:10 aaronbbrown

+1 For this. Would like the ability to easily add a bridge to the docker host when running on a Mac.

npolonski avatar Oct 29 '15 13:10 npolonski

+1

tatums avatar Oct 31 '15 18:10 tatums

+1

gonzalocasas avatar Nov 05 '15 07:11 gonzalocasas

+1

rahul-rj avatar Nov 06 '15 17:11 rahul-rj

+1

hsingh23 avatar Nov 10 '15 18:11 hsingh23

This would be of benefit for services that require data from the hosts network device (eg: dnsmasq) where you need it to connect to (and respond) on the 'hosts' interface as if it were a normal service.

rbuckland avatar Nov 17 '15 04:11 rbuckland

+1. I'm having a very hard time making it easy for my devs to use Docker on their Macbooks with our VPN client. I'm confident adding support for a bridged interface would fix this problem.

drawsmcgraw avatar Nov 19 '15 14:11 drawsmcgraw

It seems that there is no bridge configured automatically between Windows and the Docker running. The ipconfig does not show any docker0 interface. When I do an ipconfig (coz ifconfig command does not exist on Docker Quickstart Terminal), it does not show any bridge interface.

zorkkz avatar Nov 22 '15 21:11 zorkkz

+1 on bridged networking. Pretty please..

cgraefe avatar Dec 02 '15 09:12 cgraefe

+1

ghost avatar Dec 09 '15 21:12 ghost

+1 on bridged networking

valentin-nasta avatar Dec 10 '15 10:12 valentin-nasta

+1

mluis avatar Dec 11 '15 14:12 mluis