Dockerfile for building a trojan docker image.
$ git clone https://github.com/trojan-gfw/trojan-docker.git
$ cd trojan-docker/
docker build.$ docker build -t trojan .
If you want to change the version, use the --build-arg option.
$ docker build -t trojan --build-arg VERSION=v1.12.3 .
Alternatively, you can pull the pre-built trojan image from docker hub.
$ docker pull trojangfw/trojan
The $HOST_CONFIG_DIR directory should contain the trojan.json configuration file
and other related files (eg: certificate file).
$ docker run -dt --name trojan -v $HOST_CONFIG_DIR:/config -p 443:443 trojangfw/trojan
View container logs
$ docker logs -f trojan
Content type
Image
Digest
Size
3.9 MB
Last updated
about 6 years ago
docker pull fy1128/trojan