Open jetersen opened 5 years ago
We have a similar problem, also wtih the jenkins image. One solution would be to provide docker with an empty volume. Currently when a VMDK is created and formatted, there is the lost+found
directory inside. Therefore docker does not copy the directory from the image to the volume.
Now, if the volume was empty, and /var/jenkins_home
inside the image has the correct owner (1000:1000), this ownership would be transferred onto the volume by docker.
So one solution would be to "mask" the lost+found
directory e.g. by using a sub-directory on the volume filesystem as volume-root. See also:
https://github.com/vmware/vsphere-storage-for-docker/issues/2085 https://github.com/vmware/vic/issues/5777
Initial volume does not give proper permission when used from docker-compose.
I have to manually create the volume and run
chown
on it.Docker-compose file
Dockerfile