NGINX-Demos icon indicating copy to clipboard operation
NGINX-Demos copied to clipboard

Docker image nginxdemos/nginx-hello exposes not used port 80

Open RangersMS opened this issue 6 months ago • 1 comments

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.

RangersMS avatar Aug 14 '24 18:08 RangersMS