Answering my own question: it’s declared to be a volume. If you take out the VOLUME instruction, the chown takes effect.
What’s more, if you declare the volume after running chown, the chown settings remain in effect.
More Related Contents:
- What does Docker use to host/run web applications?
- How to get a Docker container’s IP address from the host
- How to deal with persistent storage (e.g. databases) in Docker
- How to assign more memory to docker container
- How to start a stopped Docker container with a different command?
- docker : invalid reference format
- How to upgrade docker container after its image changed
- How do I run a command on an already existing Docker container?
- How do you list volumes in docker containers?
- Why can’t I use Docker CMD multiple times to run multiple services?
- Get environment variable value in Dockerfile
- docker: executable file not found in $PATH
- When using BuildKit with Docker, how do I see the output of RUN commands?
- How can I expose more than 1 port with Docker?
- How to get docker-compose to always re-create containers from fresh images?
- Docker – unable to prepare context: unable to evaluate symlinks in Dockerfile path: GetFileAttributesEx
- Mount host directory with a symbolic link inside in docker container
- Docker COPY from ubuntu absolute path
- An error, “failed to solve with frontend dockerfile.v0”
- Difference between links and depends_on in docker_compose.yml
- Mounting nfs shares inside docker container
- How to enter in a Docker container already running with a new TTY
- How to change the default location for “docker create volume” command?
- How to connect to local MySQL server through Docker?
- Connect to a Service running inside a docker container from outside
- Differences Between Dockerfile Instructions in Shell and Exec Form
- Can I specify host directory to mount from Dockerfile
- What is meant by shared kernel in Docker?
- how to get docker-compose to use the latest image from repository
- Multiple Docker containers and Celery