docker nginx权限报错
第一种:
可以尝试删除原有的镜像,容器,重新拉取 docker-compose up
var/cache/nginx/client_temp" failed (13: Permission denied
第二种:
关闭selium:将config中的SELINUX的值更改为disabled
vi /etc/selinux/config
SELINUX=disabled
# enforcing - SELinux security policy is enforced.
# permissive - SELinux prints warnings instead of enforcing.
# disabled - No SELinux policy is loaded.
SELINUX=enforcing
# SELINUXTYPE= can take one of three values:
# targeted - Targeted processes are protected,
# minimum - Modification of targeted policy. Only selected processes are protected.
# mls - Multi Level Security protection.
SELINUXTYPE=targeted