Using localhost for to access running container

Thanks to this post: http://stackoverflow.com/questions/25327012/access-docker-from-external-machine-in-network

I was able to use [homebrew installed] nginx to forward the ports from my containers within vbox (on os x) to my own ip address so that other machines on my network could reach my containers

I replaced the default port 8080 forward in the default nginx.conf with this

server {
listen 8080;

server_name localhost; 

proxy_redirect off;                                                       
proxy_buffering off;                                                      
proxy_set_header Host $host;                                              
proxy_set_header X-Real-IP $remote_addr;                                  
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;              

location / {                                                              
    proxy_pass http://192.168.99.100:8080;                                            
}                                                                         

}

to be clear: this is a workaround, what I’d like to be able to do is tell Docker Toolbox [vbox] to get an ip address via dhcp on my network – then I’d not have to forward ports around…