- Open Oracle VM VirtualBox Manager
- Select the VM used by Docker
- Click Settings -> Network
- Adapter 1 should (default?) be “Attached to: NAT”
- Click Advanced -> Port Forwarding
- 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