Image Overview: nginx
ReferenceChainguard ImagesProduct
stable
cgr.dev/chainguard/nginx
Tags | Aliases |
---|---|
latest | 1 , 1.23 , 1.23.3 , 1.23.3-r1 |
latest-dev | 1-dev , 1.23-dev , 1.23.3-dev , 1.23.3-r1-dev |
A minimal nginx base image rebuilt every night from source.
Get It!
The image is available on cgr.dev
:
docker pull cgr.dev/chainguard/nginx:latest
Usage
To try out the image, run:
docker run -p 8080:80 cgr.dev/chainguard/nginx
If you navigate to localhost:8080
, you should see the nginx welcome page.
To run an example Hello World app, navigate to the root of this repo and run:
docker run -v $(pwd)/examples/hello-world/site-content:/var/lib/nginx/html -p 8080:80 cgr.dev/chainguard/nginx
If you navigate to localhost:8080
, you should see Hello World from Nginx!
.
To use a custom nginx.conf
you can mount the file into the container
docker run -v $(pwd)/$CUSTOM_NGINX_CONF_DIRECTORY/nginx.conf:/etc/nginx/nginx.conf -p 8080:80 cgr.dev/chainguard/nginx