If I set up port forwarding by running VBoxManage controlvm "$DOCKER_MACHINE_NAME" natpf1 "tcp-port8080,tcp,,8080,,8080" and then try to connect with server: http://localhost:8080, then I get Unable to connect to the server: EOF.

If I docker-machine ssh mydocker then I can see that the api-server container has port 8080 bound to 127.0.0.1, so I can’t connect over the network. If I could configure it to bind to 0.0.0.0 then I should be able to connect via port forwarding or by the ip address, I would think. If that will work, how do I configure that? Is there another solution I’m missing?