Skip the required ports check if installed in docker container. Unpriv'ed containers do not have access to the information required to resolve the service name listening - and the container should not start if there was a port conflict anyway (#4536)

Signed-off-by: Adam Warner <me@adamwarner.co.uk>
pull/4540/head
Adam Warner 2 years ago committed by GitHub
parent 0124e491d0
commit 3097c8fbdc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -787,7 +787,9 @@ check_networking() {
detect_ip_addresses "6"
ping_gateway "4"
ping_gateway "6"
check_required_ports
# Skip the following check if installed in docker container. Unpriv'ed containers do not have access to the information required
# to resolve the service name listening - and the container should not start if there was a port conflict anyway
[ -z "${PIHOLE_DOCKER_TAG}" ] && check_required_ports
}
check_x_headers() {

Loading…
Cancel
Save