下面不用看
将代理地址保存到 proxies.txt
文件中,格式为:
socks5://username:password@proxyhost:port
然后启动容器:
docker run -d \
-e APP_USER=user@mail.com \
-e APP_PASS=password \
-v ./proxies.txt:/app/proxies.txt \
overtrue/gradient-bot
注意:proxies.txt
路径请替换为正确的路径,如果没有代理,可以留空,或者先 cd
到 proxies.txt
所在目录再执行 docker run 命令。
docker ps
此命令会列出所有容器,找到对应的容器 ID("CONTAINER ID" 列对应的值),然后执行:
docker exec -it <container_id> pm2 logs
docker rm -f <container_id>
# delete old container
docker rm -f <container_id>
# pull new image
docker pull overtrue/gradient-bot
# run new container
docker run -d -e APP_USER=<user@mail.com> -e APP_PASS='<password>' -v ./proxies.txt:/app/proxies.txt overtrue/gradient-bot
Feel free to contribute to this project by creating a pull request.
if you want to support me, you can donate to my address:
TMwJhT5iCsQAfmRRKmAfasAXRaUhPWTSCE
0xa2f5b8d9689d20d452c5340745a9a2c0104c40de
HCbbrqD9Xvfqx7nWjNPaejYDtXFp4iY8PT7F4i8PpE5K
UQBD-ms1jA9cmoo8O39BXI6jqh8zwRSoBMUAl4yjEPKD6ata