If you're using boot2docker, and you would like to access your container via localhost, you can run the following line: VBoxManage controlvm boot2docker-vm natpf1 ",tcp,127.0.0.1,,," This adds a port forwarding rule to virtual box that passes the local host traffic through the boot2docker vm and into the container.