If you’re using (Docker Toolbox), then any port you publish with (docker run -p) will be published on the Toolbox VM’s private IP address. Command (docker-machine ip) will tell you the correct IP address to use. It is frequently 192.168.99.100. Then you can browse to (192.168.99.100:8080) instead of (localhost:8080).
mjmlewis
13
Related topics
| Topic | Replies | Views | Activity | |
|---|---|---|---|---|
| Can't connect to container on localhost mapped port | 1 | 24845 | May 10, 2017 | |
| Unable to access the application with container IPaddress in Windows 10 | 0 | 544 | February 13, 2019 | |
| Can't connect to container via localhost | 2 | 17148 | December 31, 2017 | |
| Unable to browse to linux container endpoint when running on Windows using docker toolbox | 2 | 3877 | February 26, 2018 | |
| "Get started" course: Can't connect to web server on Windows 10 | 4 | 9425 | February 9, 2019 |