nginx / nginx/docker-nginx

mkdir() "/var/cache/nginx/client_temp" failed (13: Permission denied)

Open
#524 21 comments 6 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Shell
Stars
3.5k
Forks
1.8k
Avg merge
42m
Merged PRs (30d)
2

Description

Hello,
I'm using the image nginx:alpine and sometime for the first docker-compose up -d I got this error spammed in logs and container restarting:

mkdir() "/var/cache/nginx/client_temp" failed (13: Permission denied)

If I docker-compose up -d again my container will be fixed but why ?

Best regards,
Lucas BOPP

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the issue with the nginx:alpine image and the docker-compose up -d entry point, then inspect the container logs across repeated starts. Done means explaining why the client_temp directory sometimes lacks permission and identifying the environment or configuration condition responsible.

Written by the indexing model from the issue text.

Assessment

Tech stack
docker, nginx
Domain
devops
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Active
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.