Merge pull request #120 from jacktpy/patch-1

Update index.md
This commit is contained in:
johlanse 2022-10-25 20:40:40 +08:00 committed by GitHub
commit 6ada8e338c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 3 deletions

View File

@ -15,10 +15,10 @@ wget https://raw.githubusercontent.com/johlanse/study_xxqg/main/docs/study_xxqg
## docker运行
```
docker run --name study_xxqg -d -p 8080:8080 -v /etc/study_xxqg/:/opt/config/ jolanse/study_xxqg:latest
docker run --name study_xxqg --restart always -d -p 8080:8080 -v /etc/study_xxqg/:/opt/config/ jolanse/study_xxqg:latest
```
各个参数的含义:
+ **--restart always 容器总是自动重启
+ **--name study_xxqg** 运行的容器的名称,可以根据自己实际情况进行修改
+ **-p 8080:8080** 将容器内部的8080端口映射到容器外面前面是宿主机的端口就是网页上访问的端口后面是容器内部需要运行的端口对应配置文件内web配置的端口就好
+ **-v /etc/study_xxqg/:/opt/config/** 将容器内的/opt/config/目录映射到宿主机的/etc/study_xxqg/目录可根据实际情况修改前面宿主机路径映射后对应的config.yml配置文件位置就在该目录下