Check the example below for 20. Demo to know what you have missed.
Also, the docker host IP is the IP of the machine itself and you can get it using the command
There are two ways to access the application :
Without port mapping, you can access your application using http://172.17.0.2:5000. But for this, you need to be able to access the IP 172.17.0.2. This IP is an IP assigned to the docker container by the docker host. So you must be inside your Docker host (which I believe is a Linux VM in your case). If your Linux VM doesn’t have a GUI, then you can try accessing your application using curl like this: curl http://172.17.0.2:8080/hello
With Port Mapping - To access your application outside the Docker host, you need to map the port on the docker container (172.17.0.2:5000) to a port on the Docker host (192.168.10.100:5000). Because, from outside of your docker host, like your laptop, you can only ping the Docker host and not the docker container directly.
This is explained in detail in Demo - Docker run here