Deprecated (use centos/nginx-16-centos7 instead): Nginx 1.6 server and a reverse proxy server
10K+
The centos/nginx-16-centos7 image provides an nginx 1.6 server and a reverse proxy server. The image can be used as a base image for other applications based on nginx 1.6 web server.
To pull the centos/nginx-16-centos7 image, run the following command as root:
docker pull centos/nginx-16-centos7
The nginx container image supports the following configuration variable, which can be set by using the -e option with the docker run command:
| Variable name | Description |
|---|---|
NGINX_LOG_TO_VOLUME | By default, nginx logs into standard output, so the logs are accessible by using the docker logs command. When NGINX_LOG_TO_VOLUME is set, nginx logs into /var/log/nginx16, which can be mounted to host system using the Docker volumes. |
docker pull centos/nginx-16-centos7:latest