How do I write to a volume container as non-root in docker?

前端 未结 1 1900
时光说笑
时光说笑 2021-02-19 13:27

How do I mount a volume writable by a non-root container user? I am ok with either the volume being owned by the non-root user or permissions being set to 777.

Dockerfil

相关标签:
1条回答
  • 2021-02-19 14:02

    That is not yet supported, and is studied in issue 2259.
    That affect other images like docker-java.

    Basically, you have to chown and copy (with the right user) your data in the volume, which is not very convenient.

    0 讨论(0)
提交回复
热议问题