84669 person learning
152542 person learning
20005 person learning
5487 person learning
7821 person learning
359900 person learning
3350 person learning
180660 person learning
48569 person learning
18603 person learning
40936 person learning
1549 person learning
1183 person learning
32909 person learning
#执行 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.