Services and User Management

An administrator starts a web server container with rootless Podman as a regular user. The container fails with a permission denied error when binding host port 80. The administrator wants to fix this without giving the container more host privileges. What should the administrator do?

Show the answer

Correct answerB. Publish the container on a host port above 1023, such as -p 8080:80

Unprivileged users cannot bind to ports below 1024 by default, so publishing on a higher host port avoids the restriction without extra privilege. Adding --privileged does not give a rootless container host root rights, and it weakens isolation.