teddysun/trojan-go

By teddysun

Updated over 1 year ago

Trojan-Go Docker Image by Teddysun

Image
122

10M+

teddysun/trojan-go repository overview

Trojan-Go Docker Image by Teddysun

Trojan-Go is An unidentifiable mechanism that helps you bypass GFW.

Trojan-Go features multiple protocols over TLS to avoid both active/passive detections and ISP QoS limitations.

Docker images are built for quick deployment in various computing cloud providers.

For more information on docker and containerization technologies, refer to official document.

The latest version 2023.11.18 provided by trojan-go-fork

  • latest, 2023.11.18 (Dockerfile)
  • 0.10.6, 0.10.5, 0.10.4, 0.10.3, 0.10.2, 0.10.0
  • 0.9.1, 0.9.0
  • 0.8.3, 0.8.2, 0.8.1, 0.8.0
  • 0.7.8, 0.7.7, 0.7.6, 0.7.5, 0.7.4, 0.7.3, 0.7.2, 0.7.0
  • 0.6.0
  • 0.5.1
Reference
  • Supported architectures (more info): amd64, arm32v6, arm32v7, arm64v8, i386, ppc64le, s390x

Prepare the host

If you need to install docker by yourself, follow the official installation guide.

Pull the image

$ docker pull teddysun/trojan-go

This pulls the latest release of Trojan-Go.

It can be found at Docker Hub.

Start a container

You must create a configuration file /etc/trojan-go/config.json in host at first:

$ mkdir -p /etc/trojan-go

A sample in JSON like below:

$ cat > /etc/trojan-go/config.json <<EOF
{
    "run_type": "server",
    "local_addr": "0.0.0.0",
    "local_port": 443,
    "remote_addr": "127.0.0.1",
    "remote_port": 80,
    "password": [
        "your_password"
    ],
    "ssl": {
        "cert": "your_cert.crt",
        "key": "your_key.key",
        "sni": "your-domain-name.com"
    },
    "router": {
        "enabled": true,
        "block": [
            "geoip:private"
        ],
        "geoip": "/usr/share/trojan-go/geoip.dat",
        "geosite": "/usr/share/trojan-go/geosite.dat"
    }
}
EOF

An online documentation can be found here

There is an example to start a container that use host network, run as a trojan-go server like below:

$ docker run -d --network host --name trojan-go --restart=always -v /etc/trojan-go:/etc/trojan-go teddysun/trojan-go

Tag summary

Content type

Image

Digest

sha256:ffdc29f08

Size

12.8 MB

Last updated

over 1 year ago

docker pull teddysun/trojan-go