E is a right answer, that's clear to me.
Could you explain me why F is not also true?
Thank you.
If you look closely, no containers are exposed on port 8080. When you are exposing ports, you have left_side:right_side.
The left side is the host port that is being exposed and mapped to the inner "right side" port that the application in the container is running on.
So you are exposing 8082, 8081, and 8001 from the system using the compose file. Those ports do happen to map to port 8080 on two containers, but the host port that is being mapped to the container is not 8080.
If you look closely, no containers are exposed on port 8080. When you are exposing ports, you have left_side:right_side.
The left side is the host port that is being exposed and mapped to the inner "right side" port that the application in the container is running on.
So you are exposing 8082, 8081, and 8001 from the system using the compose file. Those ports do happen to map to port 8080 on two containers, but the host port that is being mapped to the container is not 8080.
Right, thanks!
Red Hat
Learning Community
A collaborative learning environment, enabling open source skill development.