树莓派 Docker 镜像使用合集

2020-11-30 2:44

Aria2

镜像:huangzulin/aria2-ariang-pi

        docker run -d --name aria2 -p 6800:6800 -p 6880:80 -p 6888:8080 -v /home/aria2/downloads:/aria2/downloads -v /home/aria2/conf:/aria2/conf -e SECRET=123456 huangzulin/aria2-ariang-pi
      

配置:aria2.conf

        # 文件保存目录
        dir=/root/Download
        # 断点续传
        continue=true

        # 最大同时下载任务数
        max-concurrent-downloads=20
        # 同一服务器连接数
        max-connection-per-server=10
        # 整体上传速度限制
        max-overall-upload-limit=1K
        # 单个任务上传速度限制
        max-upload-limit=1K
        # 最小文件分片大小
        min-split-size=1M
        # 单个任务最大线程数
        split=10
        disable-ipv6=true

        # 启用RPC
        enable-rpc=true
        # 允许所有来源, 默认:false
        rpc-allow-origin-all=true
        # 允许外部访问, 默认:false
        rpc-listen-all=true

        user-agent=Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36

        # 从会话文件中读取下载任务
        input-file=/root/.aria2/conf/aria2.session
        # 在Aria2退出时保存错误的、未完成的下载任务到会话文
        save-session=/root/.aria2/conf/aria2.session
        # 定时保存会话, 0为退出时才保存
        save-session-interval=60

        # 当下载的是一个种子(以.torrent结尾)时, 自动开始BT任务, 默认:true
        follow-torrent=true

        enable-dht=true
        bt-enable-lpd=true
        enable-peer-exchange=true
        dht-file-path=/root/.aria2/conf/dht.dat
        dht-file-path6=/root/.aria2/conf/dht6.dat
        bt-tracker=udp://tracker.coppersurfer.tk:6969/announce,udp://tracker.leechers-paradise.org:6969/announce,udp://tracker.opentrackr.org:1337/announce,udp://9.rarbg.to:2710/announce,udp://9.rarbg.me:2710/announce,udp://exodus.desync.com:6969/announce,udp://retracker.lanta-net.ru:2710/announce,udp://tracker.tiny-vps.com:6969/announce,udp://tracker.cyberia.is:6969/announce,udp://open.demonii.si:1337/announce,udp://open.stealth.si:80/announce,udp://denis.stalker.upeer.me:6969/announce,udp://tracker.torrent.eu.org:451/announce,udp://tracker.moeking.me:6969/announce,udp://ipv4.tracker.harry.lu:80/announce,udp://tracker3.itzmx.com:6961/announce,udp://explodie.org:6969/announce,udp://valakas.rollo.dnsabr.com:2710/announce,udp://opentor.org:2710/announce,udp://tracker.yoshi210.com:6969/announce,udp://tracker.uw0.xyz:6969/announce,udp://tracker.nyaa.uk:6969/announce,udp://tracker.iamhansen.xyz:2000/announce,udp://tracker.filepit.to:6969/announce,udp://tracker.ds.is:6969/announce,udp://tracker-udp.gbitt.info:80/announce,udp://retracker.netbynet.ru:2710/announce,udp://retracker.akado-ural.ru:80/announce,udp://bt2.archive.org:6969/announce,udp://bt1.archive.org:6969/announce,udp://xxxtor.com:2710/announce,udp://tracker.msm8916.com:6969/announce,udp://tracker.filemail.com:6969/announce,udp://tracker.tvunderground.org.ru:3218/announce,udp://tracker.nextrp.ru:6969/announce,udp://tracker.lelux.fi:6969/announce,udp://tracker.dler.org:6969/announce,udp://retracker.sevstar.net:2710/announce,udp://amigacity.xyz:6969/announce,udp://tracker4.itzmx.com:2710/announce,udp://tracker2.itzmx.com:6961/announce,udp://tr.bangumi.moe:6969/announce,udp://chihaya.toss.li:9696/announce,udp://bt2.54new.com:8080/announce
      

Mysql

镜像:kdedesign/mysql-server

        docker run -d -p 3306:3306 -v /var/lib/mysql:/var/lib/mysql --name=mysql kdedesign/mysql-server
        docker logs --follow mysql
        docker exec -it mysql /usr/local/mysql/bin/mysql -u root -p