A

Admin • 833K Points
Coach

Q. Which of the following is used to give a container access to a specific port?

  • (A) docker expose container_name
  • (B) docker map port container_name
  • (C) docker run -p host_port:container_port
  • (D) docker connect port container_name
  • Correct Answer - Option(C)
  • Views: 37
  • Filed under category Docker
  • Hashtags:

Explanation by: Admin

'docker run -p host_port:container_port' is used to bind a container's internal port to a port on the host system.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.