Update README.md
This commit is contained in:
parent
0ed2dd288d
commit
45cdc14920
|
@ -14,10 +14,11 @@ java -jar webdav.jar --aliyundrive.refresh-token="your refreshToken"
|
|||
```
|
||||
## 容器运行
|
||||
```bash
|
||||
docker run -d --name=webdav-aliyundriver --restart=always -p 8080:8080 -v /etc/localtime:/etc/localtime -v /etc/aliyun-driver/:/etc/aliyun-driver/ -e TZ="Asia/Shanghai" -e ALIYUNDRIVE_REFRESH_TOKEN="your refreshToken" -e ALIYUNDRIVE_AUTH_PASSWORD="admin" zx5253/webdav-aliyundriver
|
||||
docker run -d --name=webdav-aliyundriver --restart=always -p 8080:8080 -v /etc/localtime:/etc/localtime -v /etc/aliyun-driver/:/etc/aliyun-driver/ -e TZ="Asia/Shanghai" -e ALIYUNDRIVE_REFRESH_TOKEN="your refreshToken" -e ALIYUNDRIVE_AUTH_PASSWORD="admin" -e JAVA_OPTS="-Xmx1g" zx5253/webdav-aliyundriver
|
||||
|
||||
# /etc/aliyun-driver/ 挂载卷自动维护了最新的refreshToken,建议挂载
|
||||
# ALIYUNDRIVE_AUTH_PASSWORD 是admin账户的密码,建议修改
|
||||
# JAVA_OPTS 可修改最大内存占用,比如 -e JAVA_OPTS="-Xmx512m" 表示最大内存限制为512m
|
||||
```
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue