docker-nginx-unprivileged
docker-nginx-unprivileged copied to clipboard
Unprivileged NGINX Dockerfiles
NGINX Unprivileged Docker Image
This Dockerfile creates an NGINX Docker image that runs NGINX as a non root, unprivileged user. Notable differences with respect to the official NGINX Docker image include:
- The default NGINX listen port is now
8080instead of80(this is no longer necessary as of Docker20.03but it's still required in other container runtimes). - The default NGINX user directive in
/etc/nginx/nginx.confhas been removed. - The default NGINX PID has been moved from
/var/run/nginx.pidto/tmp/nginx.pid. - Change
*_temp_pathvariables to/tmp/*.
Docker Hub images are built and pushed on a weekly basis (every Monday night) for the amd64, arm32v5 (for Debian), arm32v6 (for Alpine), arm32v7, arm64v8, i386, mips64le (for Debian), ppc64le and s390x architectures and can be found at https://hub.docker.com/r/nginxinc/nginx-unprivileged.
Check out the docs for the upstream Docker NGINX image for a detailed explanation of how to use this image.
Note: Issues related to security vulnerabilities will be promptly closed unless they are accompanied by a solid reasoning as to why the vulnerability poses a real security threat to this image. Check out the SECURITY doc for more details.