mirror of
https://github.com/amtoaer/bili-sync.git
synced 2026-09-05 23:49:53 +08:00
Update README.md - compose中指定user,附加简要说明 (#102)
* Update README.md - compose中指定user * Update README.md - compose中指定user的简要说明
This commit is contained in:
@@ -144,6 +144,7 @@ services:
|
|||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
network_mode: bridge
|
network_mode: bridge
|
||||||
tty: true # 该选项请仅在日志终端支持彩色输出时启用,否则日志中可能会出现乱码
|
tty: true # 该选项请仅在日志终端支持彩色输出时启用,否则日志中可能会出现乱码
|
||||||
|
# user: 1000:1000 # 非必需设置项,说明见下
|
||||||
hostname: bili-sync-rs
|
hostname: bili-sync-rs
|
||||||
container_name: bili-sync-rs
|
container_name: bili-sync-rs
|
||||||
volumes:
|
volumes:
|
||||||
@@ -153,6 +154,9 @@ services:
|
|||||||
logging:
|
logging:
|
||||||
driver: "local"
|
driver: "local"
|
||||||
```
|
```
|
||||||
|
### user 的设置
|
||||||
|
- 可设置为宿主机适当用户的 uid 及 gid (`$uid:$gid`),使项目下载的文件的所有者与该处设置的用户保持一致,不设置默认为 root
|
||||||
|
- 执行 `id ${user}` 以获得 `user` 用户的 uid 及 gid ,了解更多可参阅 [Docker文档](https://docs.docker.com/engine/reference/run/#user)
|
||||||
|
|
||||||
## 路线图
|
## 路线图
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user