Privileged host ports published 이 페이지는 아직 한국어로 제공되지 않습니다. 번역 작업 중입니다.
현재 번역 프로젝트에 대한 질문이나 피드백이 있으신 경우
언제든지 연락주시기 바랍니다. Id: dockercompose-privileged-ports-mapped-in-container
Platform: DockerCompose
Severity: Low
Category: Networking and Firewall
Learn More Description Publishing container services on host ports in the well-known range (1–1023) can conflict with host system services. Review the selected host port and whether external access is intended. To restrict access to local clients, bind the service to 127.0.0.1 or ::1.
Compliant Code Examples services :
target_only :
image : alpine
ports : [ '80' ]
unprivileged_host :
image : alpine
ports : [ '8080:80' ]
unprivileged_host_range :
image : alpine
ports : [ '2000-2100:80-180' ]
privileged_target_only :
image : alpine
ports :
- target : 80
published : 8080
Non-Compliant Code Examples services :
privileged_scalar :
image : alpine
ports : [ '80:8080' ]
cap_drop : [ NET_BIND_SERVICE]
overlapping_privileged_range :
image : alpine
ports : [ '1000-1100:2000-2100/udp' ]
privileged_ipv6_long :
image : alpine
ports :
- target : 8080
published : '443'
host_ip : '::'
protocol : tcp