Docker containers run in the background (#9602)
This commit is contained in:
parent
e6ad79b050
commit
ceb54a6c0a
2 changed files with 4 additions and 4 deletions
|
@ -136,7 +136,7 @@ The entry point is set when building the Docker image: `ENTRYPOINT ["/opt/siyuan
|
|||
More parameters can refer to `--help`. The following is an example of a startup command:
|
||||
|
||||
```
|
||||
docker run -v workspace_dir_host:workspace_dir_container -p 6806:6806 b3log/siyuan --workspace=workspace_dir_container --accessAuthCode=xxx
|
||||
docker run -d -v workspace_dir_host:workspace_dir_container -p 6806:6806 b3log/siyuan --workspace=workspace_dir_container --accessAuthCode=xxx
|
||||
```
|
||||
|
||||
* `workspace_dir_host`: The workspace folder path on the host
|
||||
|
@ -146,7 +146,7 @@ docker run -v workspace_dir_host:workspace_dir_container -p 6806:6806 b3log/siyu
|
|||
To simplify, it is recommended to configure the workspace folder path to be consistent on the host and container, such as: `workspace_dir_host` and `workspace_dir_container` are configured as `/siyuan/workspace`, the corresponding startup commands is:
|
||||
|
||||
```
|
||||
docker run -v /siyuan/workspace:/siyuan/workspace -p 6806:6806 -u 1000:1000 b3log/siyuan --workspace=/siyuan/workspace/ --accessAuthCode=xxx
|
||||
docker run -d -v /siyuan/workspace:/siyuan/workspace -p 6806:6806 -u 1000:1000 b3log/siyuan --workspace=/siyuan/workspace/ --accessAuthCode=xxx
|
||||
```
|
||||
|
||||
#### User permissions
|
||||
|
|
|
@ -139,7 +139,7 @@
|
|||
更多的参数可参考 `--help`。下面是一条启动命令示例:
|
||||
|
||||
```
|
||||
docker run -v workspace_dir_host:workspace_dir_container -p 6806:6806 b3log/siyuan --workspace=workspace_dir_container --accessAuthCode=xxx
|
||||
docker run -d -v workspace_dir_host:workspace_dir_container -p 6806:6806 b3log/siyuan --workspace=workspace_dir_container --accessAuthCode=xxx
|
||||
```
|
||||
|
||||
* `workspace_dir_host`:宿主机上的工作空间文件夹路径
|
||||
|
@ -149,7 +149,7 @@ docker run -v workspace_dir_host:workspace_dir_container -p 6806:6806 b3log/siyu
|
|||
为了简化,建议将 workspace 文件夹路径在宿主机和容器上配置为一致的,比如将 `workspace_dir_host` 和 `workspace_dir_container` 都配置为 `/siyuan/workspace`,对应的启动命令示例:
|
||||
|
||||
```
|
||||
docker run -v /siyuan/workspace:/siyuan/workspace -p 6806:6806 -u 1000:1000 b3log/siyuan --workspace=/siyuan/workspace/ --accessAuthCode=xxx
|
||||
docker run -d -v /siyuan/workspace:/siyuan/workspace -p 6806:6806 -u 1000:1000 b3log/siyuan --workspace=/siyuan/workspace/ --accessAuthCode=xxx
|
||||
```
|
||||
|
||||
#### 用户权限
|
||||
|
|
Loading…
Add table
Reference in a new issue