I'm creating docker images that will later be used on a Kubernetes with tight settings:
- read-only file system
- non-root USER
For test purposes I can emulate 1) with a read_only: true in the docker-compose config. I then have to add some directories for places with write activity, such as /run and /var. But if I try to use a tmpfs as shown here the directory is owned by root:
drwxr-xr-x 2 root root 40 Nov 27 11:05 /var Is there a secret option to make it drwxrwxrwx? Is there an alternative (besides plain disk directories)?
Running:
- Docker version 18.06.0-ce
- docker-compose version 1.8.0
- Ubuntu 16.04