Run update.sh
This commit is contained in:
parent
7e5fea0271
commit
ccf30b0665
|
|
@ -164,7 +164,7 @@ This behavior can be changed via the following environment variables:
|
||||||
|
|
||||||
## Running nginx in read-only mode
|
## Running nginx in read-only mode
|
||||||
|
|
||||||
To run nginx in read-only mode, you will need to mount a Docker volume to every location where nginx writes information. The default nginx configuration requires write access to `/var/cache` and `/var/run`. This can be easily accomplished by running nginx as follows:
|
To run nginx in read-only mode, you will need to mount a Docker volume to every location where nginx writes information. The default nginx configuration requires write access to `/var/cache/nginx` and `/var/run`. This can be easily accomplished by running nginx as follows:
|
||||||
|
|
||||||
```console
|
```console
|
||||||
$ docker run -d -p 80:80 --read-only -v $(pwd)/nginx-cache:/var/cache/nginx -v $(pwd)/nginx-pid:/var/run nginx
|
$ docker run -d -p 80:80 --read-only -v $(pwd)/nginx-cache:/var/cache/nginx -v $(pwd)/nginx-pid:/var/run nginx
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue