Skip to content
Unprivileged NGINX Dockerfiles
Branch: master
Clone or download
Latest commit 7a54e40 Jan 23, 2020
Type Name Latest commit message Commit time
Failed to load latest commit information.
mainline Update Mainline NGINX to 1.17.8 Jan 23, 2020
stable Update Mainline NGINX to 1.17.8 Jan 23, 2020
LICENSE Initial commit Jun 8, 2018 Use the right version of NJS Nov 15, 2019

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 8080 instead of 80.
  • The default NGINX user directive in /etc/nginx/nginx.conf has been removed.
  • The default NGINX PID has been moved from /var/run/ to /tmp/
  • Change *_temp_path variables to /tmp/*.

Docker Hub images are built for the amd64, arm32v6 (for Alpine), arm32v7 (for Debian), i386, ppc64le and s390x architectures and can be found at

You can’t perform that action at this time.