Q. Which of the following is the correct way to expose a Docker container’s port to the host?
β
Correct Answer: (A)
docker run -p 8080:80 container_name
Explanation: 'docker run -p 8080:80 container_name' is the correct command to expose a port from the container to the host.