Hi Sorcerer Stone, Inside your VM, if you run command `docker network ls` you'll see that you have a bridge network. If you run `ifconfig -a` in your VM, you'll also see the docker0 interface (interface to your bridge network). I don't really understand what you are trying to do, but `vagrant up` should have nothing to do with a docker bridge. I'm guess that you are talking about a "bridged adapter" when setting up a VM? If you are talking about a bridged adapter, this means the VM gets an IP on the same subnet as the Host.
So taking the two together (I'm guessing at what you are trying to do), you cannot give a docker container an IP on the same subnet as your host. You can only do port forwarding such that the docker container exposes its service to the VM (which is also on the same subnet as your host) and therefore you can reach the docker container service from your host. I hope that make sense. On Tuesday, 14 April 2020 16:48:36 UTC-4, Sorcerer Stone wrote: > > OS is Win10pro with HyperV disabled. > Work environment is: Win10 (HostOS) =>Vagrant (Ubuntu GuestOS)/VirtualBox > => docker > > I am trying to setup a bridge network for docker containers. When I > configured such network and initiated a Vagrant Up, I got error back say > essentially > > "Stderr: VBoxManage.exe: error: A NAT rule of this name already exists > VBoxManage.exe: error: Details: code E_INVALIDARG (0x80070057), component > NATEngineWrap, interface INATEngine, callee IUnknown > ... > " > > I googled and found this brief post: > https://github.com/hashicorp/vagrant/issues/6268 > In the last comment by someone named mitchellh, > He said NIC1 in docker has to be NAT > and > he said this requirement will be removed "one day" > > The above post was 2015. > Has this restriction imposed by Vagrant lifted? > I am using the latest Vagrant for my WinOS and I am experiencing this > limitation. > > I need to use a bridge network to test something or to understand why I > can send data from containers to app on Windows host but not the other way > around. Want to see what happen if I use a bridge network instead of NAT. > Also, under Vagrant, if bridge network is not allow in NIC1, does it mean > the same is true Network Adapter 2, 3, & 4? > Does Vagrant allow NAT Network option instead? > > Thanks in advance. > > > > > -- This mailing list is governed under the HashiCorp Community Guidelines - https://www.hashicorp.com/community-guidelines.html. Behavior in violation of those guidelines may result in your removal from this mailing list. GitHub Issues: https://github.com/mitchellh/vagrant/issues IRC: #vagrant on Freenode --- You received this message because you are subscribed to the Google Groups "Vagrant" group. To unsubscribe from this group and stop receiving emails from it, send an email to vagrant-up+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/vagrant-up/b6376088-4273-476d-9f2c-05bc1d92447a%40googlegroups.com.