Clash requires Go >= 1.13. You can build it from source:
$ go get -u -v github.com/Dreamacro/clash
Check Clash version with:
$ clash -v
Unfortunately, there is no native or elegant way to implement daemons on Golang. We recommend using third-party daemon management tools like PM2, Supervisor or the like to keep Clash running as a service.
In the case of pm2, start the daemon this way:
$ pm2 start clash
The default configuration directory is $HOME/.config/clash.
The name of the configuration file is config.yaml.
If you want to use another directory, use -d to control the configuration directory.
For example, you can use the current directory as the configuration directory:
$ clash -d .
Content type
Image
Digest
sha256:c92985058…
Size
12.7 MB
Last updated
over 3 years ago
docker pull aiboboxx/clash-premium