Skip to content

pengyunchou/trojan-docker

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Trojan Docker

Dockerfile for building a trojan docker image.

Build Trojan Docker Image

  1. Clone this repository.
$ git clone https://github.com/trojan-gfw/trojan-docker.git
$ cd trojan-docker/
  1. Build docker image with 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 .

Pull Trojan Docker Image

Alternatively, you can pull the pre-built trojan image from docker hub.

$ docker pull trojangfw/trojan

Create Trojan Container from Image

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

About

Dockerfile for building a trojan docker image.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Dockerfile 100.0%