docker exec -it gitea2 /bin/bash
docker exec -it gitea1 /bin/bash
进入容器目录进行操作。
chown -R git:users /mnt/sdb2 # 更改所有者为用户ID为git,并设置组为"users"
chmod -R u+rwx,g+rx,o+x /mnt/sdb2 # 给予用户读写执行权限,给予组读执行权限,给予其他
![](https://img-blog.csdnimg.cn/img_convert/a660c57ef275ea2189fcb74ba1eea2f7.webp?x-oss-process=image/format,png)
image.png
![](https://img-blog.csdnimg.cn/img_convert/2662b1cd88174c672996b93eae601213.webp?x-oss-process=image/format,png)
6A)59HSL0ZB`}TV84BFW_{0.png
只解决了这个权限,这个之前暴力设置777 好像也可以,反复改过来改过去的头大
但是permission问题 ,搞不懂啥原因
ok,笔记继续