I am aware this has been asked before:
- How do I connect to a container hosted in Docker Toolbox?
- docker-machine: Can't access container's web server from host
- ...and many others
They all have the same solution which is to use Docker's IP i.e. 192.168.99.100
.
In my case, I'm trying to access a Node-RED container in Docker Toolbox:
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
3ce4c9d29254 nodered/node-red-docker "npm start -- --user…" 3 hours ago Up 2 hours 0.0.0.0:1880->1880/tcp nodered
So I used http://192.168.99.100:1880/
from the the host's browser.
But I'm still getting timeout errors:
tcp_error
Network Error
A communication error occurred: "Operation timed out" The Web Server may be down, too busy, or experiencing other problems preventing it from responding to requests. You may wish to try again at a later time.
I tried running a simple NodeJS web service container and I could access it via curl but not from the browser.
Browsers used:
- Chrome (version 71.0.3578.98)
- Internet Explorer (version 11.0.9600.19204)