Skip to content

Commit

Permalink
Merge pull request docker-library#2198 from benrobot/nginx-fix-cache-…
Browse files Browse the repository at this point in the history
…container-path

nginx - Fix container path for cache dir to prevent error mkdir() "/var/cache/nginx/client_temp" failed (2: No such file or directory)
  • Loading branch information
tianon authored Sep 22, 2022
2 parents 3928fdd + 332cb65 commit 7e5fea0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nginx/content.md
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ This behavior can be changed via the following environment variables:

## Running %%IMAGE%% in read-only mode

To run %%IMAGE%% in read-only mode, you will need to mount a Docker volume to every location where %%IMAGE%% writes information. The default %%IMAGE%% configuration requires write access to `/var/cache` and `/var/run`. This can be easily accomplished by running %%IMAGE%% as follows:
To run %%IMAGE%% in read-only mode, you will need to mount a Docker volume to every location where %%IMAGE%% writes information. The default %%IMAGE%% configuration requires write access to `/var/cache/nginx` and `/var/run`. This can be easily accomplished by running %%IMAGE%% as follows:

```console
$ docker run -d -p 80:80 --read-only -v $(pwd)/nginx-cache:/var/cache/nginx -v $(pwd)/nginx-pid:/var/run nginx
Expand Down

0 comments on commit 7e5fea0

Please sign in to comment.