Suppose I have a server running on port 8000 on OSX. How can my Docker container access it via localhost:8000? I can\'t change the hostname too as the app in th
localhost:8000
Instead of running with --net="host", try --add-host="localhost:192.168.59.3", which is the boot2docker host IP.
--net="host"
--add-host="localhost:192.168.59.3"