Docker Community Forums

Share and learn in the Docker community.

Ownership of files in overlay2 fs


#1

Hi,

We have docker running on several machines, and the applications make use of overlay2 fs.
The overlay2 directory is located in /var/log/docker.
I notice that some files in the directories below overlay2 are not owned by any user and/or group.
They are owned by a uid and/or a gid that is not mapped to any existing user and/or group on these systems.

Is there any way to ensure that these files will be owned by existing users/groups that reside on the docker host system ?

Thanks,
Hans


#2

This should allow to replace the uid:gid inside the container for the first user declared in the Dockerfie.