NGINX-Demos
NGINX-Demos copied to clipboard
Docker image nginxdemos/nginx-hello exposes not used port 80
The Docker image nginxdemos/nginx-hello (folder nginx-hello-nonroot) exposes port 80 and 8080 despite this image only providing this service only via port 8080.
This image uses nginx:mainline-alpine as base image. nginx:mainline-alpine exposes port 80. The demo nginx config exposes its service on port 8080 and the Dockerfile exposes 8080. The resulting image exposes both ports 80 and 8080 where no service is listening on port 80.