root 권한이 없는 Podman은 1024보다 작은 호스트 포트를 사용할 수 없음
Issue
- root 권한이 없는 사용자가 호스트에서 1024보다 작은 포트를 매핑하려고 시도했지만 매핑에 실패했습니다.
$ podman run -itd -p 809:80 ubi8
Error: rootlessport cannot expose privileged port 809, you can add 'net.ipv4.ip_unprivileged_port_start=809' to /etc/sysctl.conf (currently 1024), or choose a larger port number (>= 1024): listen tcp 0.0.0.0:809: bind: permission denied
Environment
- Red Hat Enterprise Linux 7
- Red Hat Enterprise Linux 8
- Red Hat Enterprise Linux 9
- podman
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.