当用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

相关文章:

  • 2022-12-23
  • 2021-04-01
  • 2022-12-23
  • 2021-06-12
  • 2022-12-23
猜你喜欢
  • 2021-05-25
  • 2022-12-23
  • 2021-08-24
  • 2022-12-23
  • 2021-05-28
  • 2022-12-23
相关资源
相似解决方案