Build the image:
docker build -t dnscrypt-proxy .
Start the container:
docker run -d -p 127.0.0.1:53:53/udp dnscrypt-proxy
The above steps will build and start the container using default settings, connecting it to dnscrypt.eu-nl server. If you would like to override this, use the following run to set variables:
docker run -d -p 127.0.0.1:53:53/udp \
-e RESOLVER_ADDR=1.1.1.1 \
-e PROVIDER_NAME=2.dnscrypt-cert.example.com \
-e PROVIDER_KEY=X \
dnscrypt-proxy
The Dockerfile in this project is based on dnscrypt-server-docker by Frank Denis.