Folder owner changes during deployment

8/14/2019

When I built my docker image I set the owner of a folder, say application to be a specific user, say appuser. During the deployment the group and owner changed to www-data. How can I avoid this? I'd like to keep the original user. The application folder is where the application source code is mounted.

I already tried providing securityContext and running a command to change the folder owner, but this didn't work.

-- norbit
docker
kubernetes

0 Answers