Code Monkey home page Code Monkey logo

jd-base's Introduction

jd-base

如果您是第一次安装,请等待1-2分钟后执行:docker exec -it jd bash git_pull,食用方法↓:

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

你要知道的命令↓

  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 \
    -v /var/run/docker.sock:/var/run/docker.sock \
    containrrr/watchtower

jd-base's People

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.