[DNSCrypt-wrapper][dnscrypt-wrapper] for Docker. [dnscrypt-wrapper]: https://github.com/Cofyc/dnscrypt-wrapper
This example creates the image with the tag mengbo/docker-dnscrypt-wrapper
, but you can change this to use your own username.
$ docker build -t="mengbo/docker-dnscrypt-wrapper" .
Alternately, you can run the following if you have make installed...
$ make
You can also specify custom variables by change the Makefile.
You can run it by the following command...
$ docker run --name docker-dnscrypt-wrapper -d -p 443:443 -p 443:443/udp \
-v /usr/local/share/dnscrypt-wrapper:/usr/local/share/dnscrypt-wrapper \
-e RESOLVER_ADDRESS="8.8.8.8" -e RESOLVER_PORT="53" -e LISTEN_PORT="443" \
-e PROVIDER_NAME="2.dnscrypt-cert.yourdomain.com" \
mengbo/docker-dnscrypt-wrapper
RESOLVER_ADDRESS
: Upstream dns resolver server address. Default:8.8.8.8
RESOLVER_PORT
: Upstream dns resolver server port. Default:53
LISTEN_PORT
: Local port to listen. Default:443
PROVIDER_NAME
: Provider name. Default:2.dnscrypt-cert.yourdomain.com