From 8fee6fb97ab89ef3e3f401262c5c8374e96b3951 Mon Sep 17 00:00:00 2001 From: ky0utarou <168627817+ky0utarou@users.noreply.github.com> Date: Wed, 8 May 2024 19:11:32 +0800 Subject: [PATCH] =?UTF-8?q?Update=20README.md=20-=20compose=E4=B8=AD?= =?UTF-8?q?=E6=8C=87=E5=AE=9Auser=EF=BC=8C=E9=99=84=E5=8A=A0=E7=AE=80?= =?UTF-8?q?=E8=A6=81=E8=AF=B4=E6=98=8E=20(#102)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * Update README.md - compose中指定user * Update README.md - compose中指定user的简要说明 --- README.md | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 04d7bf6..ef44162 100644 --- a/README.md +++ b/README.md @@ -144,6 +144,7 @@ services: restart: unless-stopped network_mode: bridge tty: true # 该选项请仅在日志终端支持彩色输出时启用,否则日志中可能会出现乱码 + # user: 1000:1000 # 非必需设置项,说明见下 hostname: bili-sync-rs container_name: bili-sync-rs volumes: @@ -153,6 +154,9 @@ services: logging: driver: "local" ``` +### user 的设置 +- 可设置为宿主机适当用户的 uid 及 gid (`$uid:$gid`),使项目下载的文件的所有者与该处设置的用户保持一致,不设置默认为 root +- 执行 `id ${user}` 以获得 `user` 用户的 uid 及 gid ,了解更多可参阅 [Docker文档](https://docs.docker.com/engine/reference/run/#user) ## 路线图 @@ -177,4 +181,4 @@ services: + [bilibili-API-collect](https://github.com/SocialSisterYi/bilibili-API-collect) B 站的第三方接口文档 + [bilibili-api](https://github.com/Nemo2011/bilibili-api) 使用 Python 调用接口的参考实现 -+ [danmu2ass](https://github.com/gwy15/danmu2ass) 本项目弹幕下载功能的缝合来源 \ No newline at end of file ++ [danmu2ass](https://github.com/gwy15/danmu2ass) 本项目弹幕下载功能的缝合来源