No internet in container running in VM without --net=host

We are running into an issue where we have Docker running in a VirtualBox VM with NAT networking enabled. When we spin up a container and try to ping google.com, it times out. However, if we add --net=host, it works. Can anyone give any ideas on how we can begin to debug the issue here? We would like to not need to use --net=host.

1 Like

Finally figured this out. This was simply fixed by enabling ip forwarding on the host.