CompTIA Linux+ XK0-005 – Question011

A Linux administrator was asked to run a container with the httpd server inside. This container should be exposed at port 443 of a Linux host machine while it internally listens on port 8443. Which of the following commands will accomplish this task?

A.
podman run -d -p 443:8443 httpd
B. podman run -d -p 8443:443 httpd
C. podman run d -e 443:8443 httpd
D. podman exec -p 8443:443 httpd

Correct Answer: A