當用docker -v掛載volume后,會出現Permission Denied的問題,這有時是因為SeLinux導致的。解決方法如下:
chcon -Rt svirt_sandbox_file_t /path/to/volume
有時候會遇到chcon: can't apply partial context to unlabeled file的錯誤,這時候需要運行如下命令:
chcon -h system_u:object_r:xxxx_t:s0 /mnt/xxxx
當用docker -v掛載volume后,會出現Permission Denied的問題,這有時是因為SeLinux導致的。解決方法如下:
chcon -Rt svirt_sandbox_file_t /path/to/volume
有時候會遇到chcon: can't apply partial context to unlabeled file的錯誤,這時候需要運行如下命令:
chcon -h system_u:object_r:xxxx_t:s0 /mnt/xxxx
本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。