docker hub官方镜像地址如下:
https://hub.docker.com/r/telegrammessenger/proxy
拉取镜像
sudo docker pull telegrammessenger/proxy
创建容器
sudo docker run -d \ -p 443:443 \ --name=mtproto-proxy \ --restart=always \ -v proxy-config:/data \ telegrammessenger/proxy:latest
查看docker日志,获取具体信息
sudo docker logs mtproto-proxy
[+] Using the explicitly passed secret: '00baadf00d15abad1deaa515baadcafe'. [+] Saving it to /data/secret. [*] Final configuration: [*] Secret 1: 00baadf00d15abad1deaa515baadcafe [*] tg:// link for secret 1 auto configuration: : tg://proxy?server=3.14.15.92&port=443&secret=00baadf00d15abad1deaa515baadcafe [*] t.me link for secret 1: tg://proxy?server=3.14.15.92&port=443&secret=00baadf00d15abad1deaa515baadcafe [*] Tag: no tag [*] External IP: 3.14.15.92 [*] Make sure to fix the links in case you run the proxy on a different port.