1:拉取镜像:
| 1 2 | 登陆openwrt的终端中拉取镜像 docker pull whyour/qinglong:latest |
2:启动容器:
| openwrt固件使用下面的命令全部粘贴, 注意:下面的/mnt/opt/docker/ 路径需要更改成你的openwrt本地磁盘路径 docker run -dit \ -v /mnt/data_sda4/docker/QL/config:/ql/config \ -v /mnt/data_sda4/docker/QL/log:/ql/log \ -v /mnt/data_sda4/docker/QL/db:/ql/db \ -v /mnt/data_sda4/docker/QL/scripts:/ql/scripts \ -p 5700:5700 \ –name QL \ –hostname QL \ –restart always \ whyour/qinglong:latest openwrt配置 docker run -d –name=QL –net=host -p 5700:5700 –restart=always -v /mnt/sdb1/QL/config:/ql/config -v /mnt/sdb1/QL/log:/ql/log -v /mnt/sdb1/QL/db:/ql/db -v /mnt/sdb1/QL/scripts:/ql/scripts whyour/qinglong:latest vps服务器上请使用下面命令: docker run -dit \ -v $PWD/QL/config:/ql/config \ -v $PWD/QL/log:/ql/log \ -v $PWD/QL/db:/ql/db \ -v $PWD/QL/scripts:/ql/scripts \ -p 5700:5700 \ --name QL \ --hostname QL \ --restart always \ whyour/qinglong:latest |
如果命令不对一类的用下面命令删除镜像与容器
1.删除镜像 docker rmi whyour/qinglong:latest
2.删除容器 docker rm -f qinglong
3:登陆青龙面板:
| 1 | 访问 http://自己ip:5700 |
4:获取京东token:
| 1 2 3 4 5 6 7 | pt_key=填写你的;pt_pin=填写你的; 创建环节变量,编码名称:JD_COOKIE 值为:pt_key=填写你的;pt_pin=填写你的; 如果无法获取仓库修改青龙面板配置文件第19行 ## 由于github仓库拉取较慢,所以会默认添加代理前缀,如不需要请移除 ## GithubProxyUrl="https://ghproxy.com/" ## GithubProxyUrl="https://git.metauniverse-cn.com/" GithubProxyUrl="https://pd.zwc365.com/" |
5:拉取脚本仓库:
| 1 2 3 | 名称:仓库1 命令:ql repo https://github.com/jnylife/KR.git 定时规则:0 0 * * * |
| 1 2 3 4 5 6 | 名称:仓库2 KingRan/KR(集合库) ql repo https://github.com/KingRan/KR.git "jd_|jx_|jdCookie" "activity|backUp" "^jd[^_]|USER|utils|function|sign|sendNotify|ql|JDJR" 定时规则:0 0 * * * 必装依赖在青龙面板依赖管理中添加以下5个依赖类型为:Nodejs png-js axios ts-md5 date-fns jsdom |