From eb3924e0c581eea728df53792bec0a8f9b688a43 Mon Sep 17 00:00:00 2001 From: hexxa Date: Tue, 8 Feb 2022 15:10:20 +0800 Subject: [PATCH] chore(readme): update docker run command with predefined accounts --- README.md | 4 +++- docs/README_zh-cn.md | 3 ++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 18967ef..6de7461 100644 --- a/README.md +++ b/README.md @@ -60,6 +60,7 @@ Then you can open `http://127.0.0.1:8686` and log in with user name `qs` and pas docker run \ --name quickshare \ -d -p 8686:8686 \ +-u 8686:8686 \ -v `pwd`/quickshare/root:/quickshare/root \ -e DEFAULTADMIN=qs \ -e DEFAULTADMINPWD=1234 \ @@ -68,7 +69,8 @@ hexxa/quickshare - `DEFAULTADMIN` is the default user name - `DEFAULTADMINPWD` is the default user password -- `/quickshare/root` is where Quickshare stores files and directories. +- `/quickshare/root` is where the Quickshare stores files and directories. +- `-u 8686:8686` is specifying the user(uid=8686) and the group(gid=8686) to start the Quickshare, which are predefined in the image ### Run from source code diff --git a/docs/README_zh-cn.md b/docs/README_zh-cn.md index 0eb2ce3..ad16633 100644 --- a/docs/README_zh-cn.md +++ b/docs/README_zh-cn.md @@ -67,7 +67,8 @@ hexxa/quickshare - `DEFAULTADMIN` 是默认的用户名 - `DEFAULTADMINPWD` 是默认的用户密码 -- `/quickshare/root` 是 Quickshare 保存文件和目录的地方. +- `/quickshare/root` 是 Quickshare 保存文件和目录的地方 +- `-u 8686:8686` 指定了用户(uid=8686)和组(gid=8686)来启动Quickshare,它们已经在镜像中被预定义 ### 运行源代码