Simple variation on nginx that turns off caching. Useful for development to immediately see changes.
4.3K
A simple variation on the official nginx image that turns off caching by setting sendfile to off. Useful for web development where you want to be constantly changing files and immediately seeing the new results.
Whatever the official nginx image is. Do what you like with the changes I've made.
Run with your content directory mapped to /usr/share/nginx/html, and a port mapped to port 80 in the container. For example:
docker run --name nginx -v /path/to/my/content:/usr/share/nginx/html:ro -d -p 8080:80 markgrimes/nginx-nocache
Then direct your browser to http://localhost:8080/. If you're using docker-machine on Mac or Windows then you need to use the VMs IP address instead of localhost.
For more information see the official image. If you're changing the config in the container (/etc/nginx/nginx.conf) then you might as well just use the official image instead of this one.
Content type
Image
Digest
Size
51.1 MB
Last updated
almost 6 years ago
docker pull markgrimes/nginx-nocache