#执行 sudo docker run -d -p 81:80 -v /root/php:/root/php --name <tag> image-name
启动镜像 Mount container volumes 的时候在logs里看到
chown: /var/www/html: Permission denied
请问这个要怎么解决?查了查帖子说是要修改uid,可是怎么容器里root和主机的root,uid都是0呀~
#查询方法 id root
认证0级讲师
I have successfully configured shared volumes using this tutorial, which is available for reference.
chmod 777 /var/www/html
Check if selinux is turned off. I mounted the host directory into the mysql container, but it failed after a few days. After turning off selinux, it succeeded.
I have successfully configured shared volumes using this tutorial, which is available for reference.
chmod 777 /var/www/html
Check if selinux is turned off.
I mounted the host directory into the mysql container, but it failed after a few days. After turning off selinux, it succeeded.