Docker/Portainer container config

New to Docker and trying to get davd/docker-ddns container working.
I’m to the point where I need to configure these settings:

docker run -it -d \
    -p 8080:8080 \
    -p 53:53 \
    -p 53:53/udp \
    -e SHARED_SECRET=changeme \
    -e ZONE=example.org \
    -e RECORD_TTL=3600 \
    --name=dyndns \
    davd/docker-ddns:latest

I’m at a loss as to where these go or how to set them. I would think it would be under the portainer->containers->command and logging section but it’s not clear.

All the online documentation I can find uses the command line and I’m not sure that’s appropriate when running docker on nethserver.

Simply SSH into your nethserver instance and run the command there
docker run -it -d \ -p 8080:8080 \ -p 53:53 \ -p 53:53/udp \ -e SHARED_SECRET=changeme \ -e ZONE=example.org \ -e RECORD_TTL=3600 \ --name=dyndns \ davd/docker-ddns:latest
Obviously change details to suit your use case

The only issue I see is a conflict of ports as I can’t remember for certain but I think nethserver installs DNS by default which would use that port

1 Like

Basicaly from what I understand of the package they assume your going to run it on a vps or vm without any other services already installed aside from docker

I mean theoreticaly it should work in nethserver with docker using an alternative port (e.g., 5353) then using a means to externaly map the incoming traffic from port 53 (from the connection that sits outside of your nethserver) to port 5353 and vise versa (e.g., port forwarding on your router)

if you do that then this should work
issue this cmd as root in nethserver terminal

mkdir ./cache && chmod -R a+w ./cache

then issue this cmd in full (remember to change your domain to the correct one for your use case)

docker run -it -d \
-v /cache:/var/cache/bind \
    -p 8080:8080 \
    -p 5353:53 \
    -p 5353:53/udp \
    -e SHARED_SECRET=changeme \
    -e ZONE=yourdomain.tld \
    -e RECORD_TTL=3600 \
    --name=dyndns \
    davd/docker-ddns:latest

This allows you to keep persist DNS configuration across container recreation

Also make sure nothing else is running on port 8080 if there is change -p 8080:8080 to -p someport:8080

But remember for this to work you need

  1. Domain name

  2. your nethserver (or I should say the router connected to nethserver needs to have a public Static IP and you domain name has to point to that IP)

  3. Port Forwarding Setup correctly

1 Like