Can I change owner of directory that is mounted on volume in IBM containers?

后端 未结 3 884
攒了一身酷
攒了一身酷 2020-12-06 18:25

I\'m trying to launch postgres in IBM containers. I have just created volume by:

$ cf ic volume create pgdata

Then mount it:



        
3条回答
  •  独厮守ぢ
    2020-12-06 19:05

    Here are 3 different but possible solutions:

    1. Using a dockerfile and doing a chown before mounting the volume.
    2. USER ROOT command in dockerfile before you do a chown.
    3. Use --cap-add flag.

提交回复
热议问题