Posted on

How to connect to a docker container from outside the host (same network) [Windows] – Stack Overflow

  1. Open Oracle VM VirtualBox Manager
  2. Select the VM used by Docker
  3. Click Settings -> Network
  4. Adapter 1 should (default?) be “Attached to: NAT”
  5. Click Advanced -> Port Forwarding
  6. Add rule: Protocol TCP, Host Port 8080, Guest Port 8080 (leave Host IP and Guest IP empty)

You should now be able to browse to your container via localhost:8080 and your-internal-ip:8080.

I’ve created my first docker container, it’s running a server using Go but I can’t access it from outside the host computer. I’ve just started with docker so I’m a little lost here.So I have a very

Source: How to connect to a docker container from outside the host (same network) [Windows] – Stack Overflow