jedisct1 / dnscrypt-server-docker

A Docker image for a non-censoring, non-logging, DNSSEC-capable, DNSCrypt-enabled DNS resolver
https://dnscrypt.info
ISC License
141 stars 22 forks source link

changing port does not work #12

Closed nuved closed 5 years ago

nuved commented 5 years ago

I want dnscrypt-server listen on 444 port but it's not possible . $ docker run --name=dnscrypt-server -p 444:444/udp -p 444:444/tcp --net=host \ jedisct1/dnscrypt-server init -N example.com -E 192.168.1.1:444

GregoryOrciuch commented 5 years ago

I think you have to still use internal process port try like that: docker run --name=dnscrypt-server -p 444:443/udp -p 444:443/tcp --net=host

nuved commented 5 years ago

I already ran it too.

docker run --name=dnscrypt-server -p 444:443/udp -p 444:443/tcp --net=host jedisct1/dnscrypt-server init -N example.com -E 192.168.1.1:443

I got these error

Setup success. Certificates created. Enable in unbound.conf file to use

the main server port 443 is busy with nginx

I just run this command

docker run --name=dnscrypt-server -p 444:443 -p 444:443/udp jedisct1/dnscrypt-server init -N example.com -E 192..168.1.1:443

but I need --net=host.

poentodewo commented 5 years ago

change -E 192.168.1.1:443 to -E 192.168.1.1:444 and delete --net=host if not work