Valid 200-901 Dumps shared by ExamDiscuss.com for Helping Passing 200-901 Exam! ExamDiscuss.com now offer the newest 200-901 exam dumps, the ExamDiscuss.com 200-901 exam questions have been updated and answers have been corrected get the newest ExamDiscuss.com 200-901 dumps with Test Engine here:
A developer created a new secure API and is testing the functionality locally. The API was added to a container for further testing, and other team members and applications need to connect to the API. Which command exposes the API in the container as port 8443 and allows connections external to the host?
Correct Answer: B
The docker run command is used to create and start a new container from an image. The -p option maps a port on the host to a port in the container. * Port Mapping: The syntax -p [host_ip:host_port:container_port/protocol] is used to map ports. * Exposing Port 8443: The correct mapping to expose the API on port 8443 and allow external connections is 0.0.0.0:443:8443/tcp, which maps port 443 on the host to port 8443 in the container. Option B correctly maps the ports and allows external connections. Reference: Docker Documentation: Docker Run Reference