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

后端 未结 3 894
攒了一身酷
攒了一身酷 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条回答
  •  慢半拍i
    慢半拍i (楼主)
    2020-12-06 19:17

    In your Dockerfile you can modify the permissions of a directory.

    RUN chown postgres:postgres pgsql

    Additionally when you ssh in you can modify the permissions of the directory by using sudo. sudo chown postgres:postgres pgsql

提交回复
热议问题