Giter Club home page Giter Club logo

pt's Introduction

transmission

docker run -d \
  --name=transmission \
  -e PUID=1000 \
  -e PGID=1000 \
  -e TZ=Shanghai/China \
  -e TRANSMISSION_WEB_HOME=/transmission-web-control/ \
  -e USER=veip007 \
  -e PASS=github.com \
  -p 9091:9091 \
  -p 51413:51413 \
  -p 51413:51413/udp \
  -v /root/transmission/config:/config \
  -v /root/transmission/downloads:/downloads \
  -v /root/transmission/watch:/watch \
  --restart unless-stopped \
  linuxserver/transmission

其中 -e USER=veip007 \ -e PASS=github.com \ 为您的用户名和密码 WEB访问地址为 IP:9091 防火墙记得端口放行9091和51413


Qbittorrent

 docker run --restart=always --name qbittorrent -d \
-p 6881:6881 \
-p 6881:6881/udp \
-p 8080:8080 \
-v ~/qbittorrent/config:/config \
-v ~/qbittorrent/downloads:/downloads \
linuxserver/qbittorrent

qbittorrent地址:http://ip:8080 用户名:admin 密码:adminadmin 配置和/下载目录:~/qbittorrent

注意Qbittorrent 默认端口6881被很多PT站封掉,自己更换端口。同时防火墙放行


设置自动更新镜像和容器并清除旧镜像

1.更新所有容器和镜像

docker run -d \
    --name watchtower \
    --restart unless-stopped \
    -v /var/run/docker.sock:/var/run/docker.sock \
    containrrr/watchtower -c\

2.选择性更新,例如只更新 Qbittorrenttransmission

docker run -d \
    --name watchtower \
    --restart unless-stopped \
    -v /var/run/docker.sock:/var/run/docker.sock \
    containrrr/watchtower -c \
    Qbittorrent transmission

3.通过列表方式更新容器。

docker run -d \
    --name watchtower \
    --restart unless-stopped \
    -v /var/run/docker.sock:/var/run/docker.sock \
    containrrr/watchtower -c \
    $(cat /root/watchtower.list)

此方法需建立一个列表vim /root/watchtower.list 列表内容为更新镜像的目录,如:

Qbittorrent
transmission
qiandao

其它docker命令:

拉镜像 docker pull xxxx/yyyyy:1.0.31

改标签 docker image tag xxxx/yyyyy:1.0.31 veip007/yyyyyy:1.0.31

登陆docker docker login

将镜像推送到账号 docker push veip007/yyyyyy:1.0.31

上文1.0.31可自定义。若最新版则为:latest

pt'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.