1 Star 0 Fork 172

dong0719 / jd-base

forked from dockere / jd-base 
Create your Gitee Account
Explore and code with more than 6 million developers,Free private repositories !:)
Sign up
This repository doesn't specify license. Without author's permission, this code is only for learning and cannot be used for other purposes.
Clone or download
Cancel
Notice: Creating folder will generate an empty file .keep, because not support in Git
Loading...
README.md

jd-base

如果您是第一次安装,请等待1-2分钟后执行:docker exec -it jd bash git_pull,如你是旁路由,请把-p 5678:5678 \替换成--network host ,食用方法.!↓:

docker run -dit \
   -v /安装目录/jd/config:/jd/config \
   -v /安装目录/jd/log:/jd/log \
   -p 5678:5678 \
   -e ENABLE_HANGUP=true \
   -e ENABLE_WEB_PANEL=true \
   --name jd \
   --hostname jd \
   --restart always \
   noobx/jd:gitee

如需映射脚本出来直接在上面加一行:

-v /安装目录/jd/scripts:/jd/scripts \

node基础镜像

noobx/jd:gitee

集成python与node镜像

noobx/jd:py

shell一键安装docker与watchtower(by:老揭力)

wget -q https://raw.githubusercontent.com/dockere/jd-base/master/sample/jd-docker.sh -O jd-docker.sh && chmod +x jd-docker.sh && ./jd-docker.sh

你要知道的命令↓

  1. 手动 git pull 更新脚本
docker exec -it jd bash git_pull
  1. 手动删除指定时间以前的旧日志
docker exec -it jd bash rm_log
  1. 手动导出所有互助码
docker exec -it jd bash export_sharecodes
  1. 手动启动挂机程序(容器会在启动时立即启动挂机程序,所以你想重启挂机程序,你也可以重启容器,而不采用下面的方法。
docker exec -it jd bash jd hangup
  1. 手动执行薅羊毛脚本,用法如下(其中-it后面的jd为容器名,bash后面的jd为命令名,xxx为lxk0301大佬的脚本名称),不支持直接以node xxx.js命令运行:
docker exec -it jd bash jd xxx      # 如果设置了随机延迟并且当时时间不在0-2、30-31、59分内,将随机延迟一定秒数
docker exec -it jd bash jd xxx now  # 无论是否设置了随机延迟,均立即运行
  1. Copy自定义脚本到容器目录
docker cp /宿主机上脚本存放路径/test.js jd:/jd/scripts
  1. 查看创建日志
docker logs -f jd
  1. 重置WEB面板密码
docker exec -it jd bash jd resetpwd
  1. 查看挂机脚本日志
docker exec -it jd pm2 monit``docker exec -it jd pm2 logs
  1. 重启容器
docker restart jd
  1. 如何自动更新容器!
docker run -d \
    --name watchtower \
    --restart always \
    -v /var/run/docker.sock:/var/run/docker.sock \
    containrrr/watchtower \
    --cleanup

Comments ( 0 )

Sign in for post a comment

About

No description spread retract
Cancel

Releases

No release

Contributors

All

Activities

load more
can not load any more
1
https://gitee.com/dong0719/jd-base.git
git@gitee.com:dong0719/jd-base.git
dong0719
jd-base
jd-base
master

Search