Setting Port forwarding for boot2docker to access the internet

If you have followed the instructions on how to install boot2docker on windows you will discover that the docker VM may not able to talk to the outside world by default.

boo6

To correct this you have to add port forwarding from the docker VM to the HOST. This is accomplished by the following

Run the newly installed Oracle Virtual box on your window machine

boo1

Select Settings

boo2

Network > Port Forwarding

boo3

Add the docker port (2375) so that it can talk out through the host (windows) machine

With this in place you must close boot2docker and restart the VM.

boo5

After that you can restart boot2docker and you should be able to ping the outside world

boo7

 

 

 

Advertisements