一、KMS激活服务器
1 2 3 4 5 6
| docker create \ --name=kms \ -p 宿主端口:1688 \ -p 宿主端口:80 \ --restart unless-stopped \ johngong/kms:latest
|
二、snapdrop局域网互传
此处非latest镜像原因是该版本是最后支持armv7l的镜像
1 2 3 4 5 6 7 8 9
| docker run -d \ --name=snapdrop \ -e PUID=1000 \ -e PGID=1000 \ -e TZ=Asia/Shanghai \ -p 宿主机端口:80 \ -v /宿主机目录/snapdrop:/config \ --restart unless-stopped \ linuxserver/snapdrop:eac78009-ls98
|
三、甜糖镜像PCDN
1 2 3 4 5 6 7 8 9 10
| docker run -d \ -v /宿主机储存位置/ttnode:/mnt/data/ttnode \ -v /var/run/docker.sock:/var/run/docker.sock \ -v /proc:/host/proc:ro \ --name ttnode \ --hostname ttnode \ --privileged \ --net=host \ --restart=always \ registry.cn-hangzhou.aliyuncs.com/tiptime/ttnode:latest
|
四、Serverstatus客户端服务端
- 服务端
vi /宿主机目录/ServerStatus/config.json
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37
| { "servers": [ { "username": "服务器1用户名", "name": "服务器1昵称", "type": "类型", "host": "所在", "location": "JP", "password": "密码", "monthstart": 1 }, { "username": "服务器2用户名", "name": "服务器2昵称", "type": "类型", "host": "所在", "location": "CN", "password": "密码", "monthstart": 1 } ], "watchdog": [ { "name": "memory high warning", "rule": "(memory_used/memory_total)*100>90", "interval": 5300, "callback": "https://通知地址/send?password=xxx&chan=group2&title=ServerStatus&desp=" }, { "name": "offline warning", "rule": "online4=0&online6=0", "interval": 5600, "callback": "https://通知地址/send?password=xxx&chan=group2&title=ServerStatus&desp=" } ] }
|
docker run -d --restart=always --name=serverstatus -v /宿主机目录/server-config.json:/ServerStatus/server/config.json -v /宿主机目录/serverstatus-monthtraffic:/usr/share/nginx/html/json -p 宿主机端口:80 -p 宿主机端口:35601 cppla/serverstatus:latest
- 客户端
docker run --network=host --name=serverstatusclient --restart=always -e SERVER="宿主机地址" -e USER="客户端用户名" -e PASSWORD="客户端密码" -e PROBEPORT="宿主机端口" dtcokr/serverstatus:client
五、网心云PCDN
docker run -d --name=wxedge --restart=always --privileged --net=host --tmpfs /run --tmpfs /tmp -v /宿主机目录/wxy:/storage:rw dockerproxy.com/onething1/wxedge
六、Portainer容器图形化管理
docker run -d -p 宿主机端口:9000 --name=portainer --restart=always -v /var/run/docker.sock:/var/run/docker.sock -v /宿主机目录/portainer:/data portainer/portainer-ce:latest
七、DDNS客户端
docker run -d --name ddns-go --restart=always --net=host -v /宿主机目录/ddnsgo:/root jeessy/ddns-go
八、Navidrome音乐数播
vi /宿主机目录/navidrome/navidrome.toml
1 2 3 4 5 6 7 8 9
| AuthRequestLimit = 5 DefaultLanguage = "zh-Hans"
UILoginBackgroundUrl = "https://baidu.com/首页地址" UIWelcomeMessage = "名字" ND_LOGLEVEL = "error" LastFM.ApiKey = "自己申请" LastFM.Secret = "自己申请" LastFM.Language = "zh"
|
docker run -d --name navidrome --restart=unless-stopped -v /宿主机音乐目录/music:/music -v /宿主机目录/navidrome:/data -p 宿主机端口:4533 -e ND_LOGLEVEL=error -e ND_CONFIGFILE="/data/navidrome.toml" deluan/navidrome:latest
九、Teamspeak语音服务端
- ARM设备
docker run -d --name TeamSpeak3_Server -e TIME_ZONE=Asia/Shanghai -p 9987:9987/udp -p 10011:10011/tcp -p 30033:30033/tcp -v /宿主机目录/ts3:/teamspeak/save/ ertagh/teamspeak3-server:latest-box-predownloaded
- X86设备
vi /宿主机目录/teamspeak/ts3server.ini
1 2 3 4 5
| default_voice_port=9987 filetransfer_ip=0.0.0.0 filetransfer_port=30033 query_port=10011 query_ssh_port=10022
|
1 2 3 4 5 6 7 8
| docker run -d --restart=always --name teamspeak \ -e PUID=503 \ -e PGID=503 \ -e TS3SERVER_LICENSE=accept \ -p 9987:9987/udp -p 30033:30033 -p 10011:10011 -p 41144:41144 \ -v /宿主机目录/teamspeak:/data \ mbentley/teamspeak \ inifile=/data/ts3server.ini
|
十、FRP内网映射
- FRPC客户端
vi /宿主机目录/frpc/frpc.ini
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
| [common] server_addr = frp.freefrp.net server_port = 7000 token = freefrp.net
[web1_xxxxx] type = http local_ip = 192.168.1.2 local_port = 5000 custom_domains = yourdomain.com
[tcp1_xxxxx] type = tcp local_ip = 192.168.1.2 local_port = 22 remote_port = 22222 custom_domains = yourdomain.com
|
docker run -d --name=frpc --restart=always -v /宿主机目录/frpc/frpc.ini:/frp/frpc.ini stilleshan/frpc
2. FRPS服务端
vi /宿主机目录/frps/frps.ini
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
| [common] bind_addr = 0.0.0.0 bind_port = 7000 bind_udp_port = 7001 kcp_bind_port = 7000 vhost_http_port = 80 vhost_https_port = 443 dashboard_addr = 0.0.0.0 dashboard_port = 7500 dashboard_user = admin dashboard_pwd = admin log_file = ./frps.log log_level = info log_max_days = 3 disable_log_color = false token = 12345678 allow_ports = 2000-3000,3001,3003,4000-50000 max_pool_count = 5 max_ports_per_client = 0 subdomain_host = frps.com tcp_mux = true
|
1 2 3 4
| docker run -d --name=frps --restart=always \ --network host \ -v /root/frps/frps.ini:/frp/frps.ini \ stilleshan/frps
|
十一、calibre-web在线阅读
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
| docker create \ --name=calibre-web \ -p 宿主机端口:8083 \ -p 宿主机端口:8080 \ -v /宿主机目录配置/calibre-web:/config \ -v /宿主机目录图书/calibre-web/library:/library \ -v /宿主机目录自动添加/calibre-web/autoadd:/autoaddbooks \ -e UID=1000 \ -e GID=1000 \ -e CALIBRE_SERVER_USER=admin \ -e TZ=Asia/Shanghai \ -e CALIBRE_ASCII_FILENAME=false \ -e CALIBRE_SERVER_PASSWORD=密码 \ --restart unless-stopped \ johngong/calibre-web:latest
|
十二、aria2下载器
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
| docker create \ --name=aria2 \ -p 6881:6881 \ -p 6881:6881/udp \ -p 6800:6800 \ -p 宿主机网页端口:8080 \ -e ARIA2_RPC_SECRET=密码 \ -e ARIA2_RPC_LISTEN_PORT=6800 \ -e ARIA2_LISTEN_PORT=6881 \ -e UID=1000 \ -e GID=1000 \ -e UMASK=022 \ -v /宿主机配置地址/aria2:/config \ -v /宿主机下载地址/download:/Downloads \ --restart unless-stopped \ johngong/aria2:latest
|
十三、异地局域网
以下内容仅为异地组网使用,来自互联网,未测试,自行甄别输入
`docker run -d -p 宿主机端口:配置文件端口 –name vxxray –restart=always -e 为途锐.vmess.aead.forced=false -v /宿主机目录/vxxray:/etc/vxxray teddysun/为途锐
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36
| { "log": { "loglevel": "error" }, "inbounds": [ { "port": 端口, "protocol": "vme2s", "settings": { "clients": [ { "id": "随机生成ID", "alterId": 数字ID } ] }, "streamSettings": { "network": "ws", "wsSettings": { "path": "/目录" }
} } ], "outbounds": [ { "protocol": "弗瑞德木", "tag": "direct" }, { "protocol": "blackhole", "tag": "block" } ] }
|
docker run -d -p 宿主机端口:配置文件端口 -p 宿主机端口:配置文件端口/udp --name 2s-libev --restart=always -v /宿主机目录/2s-libev:/etc/啥都扫克斯-libev teddysun/啥都扫克斯-libev
1 2 3 4 5 6 7 8 9 10 11 12
| { "server":"0.0.0.0", "server_port":端口, "password":"密码", "timeout":300, "method":"aes-256-gcm", "fast_open":false, "nameserver":"8.8.8.8", "mode":"tcp_and_udp", "plugin":"为途锐-plugin", "plugin_opts":"server;loglevel=none;path=/目录" }
|
十四、未完待续