I haven't fully understood the way port forwarding works with docker.
My scenario looks like this:
- I have a Dockerfile that exposes a port (in my case it's 8000)
- I have built an image using this Dockerfile (by using "docker build -t test_docker")
- Now I created several containers by using "docker run -p 808X:8000 -d test_docker"
- The host reacts on calling its IP with the different ports I have assigned on "docker run"
What exactly does this EXPOSE command do in the Dockerfile? I understood that the docker daemon itself handles the network connections and while calling "docker run" I also tell what image should be used...
Thanks