Get youself a account at spDYN or similar provider. If you choose a different provider - make sure to read the Customising section.
This images target the ARM architecture, uses the well known ddclient library and is based on alpine Linux, and thus leads to a slimmer image.
Find the source code at GitHub or the ready-to-run image in the DockerHub and do not forget to star the repository ;-)
Get ready to roll and run the container:
$ docker run --detach \
--name ddclient \
--env HOSTNAME=yourdomain.spdns.de \
--env UPDATE_TOKEN=imwg-futl-mzmw \
--restart unless-stopped \
netzfisch/rpi-dyndns
To customise change ddclient.conf
to your needs, e.g. see possible configuration options at this template file. Make sure to use '@@hostname/login/password@@' syntax, otherwise variable replacement will fail!
Than build for yourself and run again:
$ git clone [email protected]:netzfisch/rpi-dyndns.git && cd rpi-dyndns
$ docker build -t netzfisch/rpi-dyndns:custom .
$ docker run ... see above parameters
netzfisch/rpi-dyndns:custom
If you just need to manually setup, start the container without environment parameters and replace variables with sed
:
$ env HOSTNAME=yourdomain.spdns.de LOGIN=yourdomain.spdns.de UPDATE_TOKEN=imwg-futl-mzmw
$ docker exec ddclient sed -i -e 's/@@hostname@@/$HOSTNAME/g' /etc/ddclient.conf
$ ...
Check that the environment includes your credentials:
$ docker exec -it ddclient env
After running docker exec ddclient setup
look up, if configuration was set right:
$ docker exec ddclient cat /etc/ddclient/ddclient.conf
Finally you could dig into the container:
$ docker exec -it ddclient ash
If you find a problem, please create a GitHub Issue.
Have a fix, want to add or request a feature? Pull Requests are welcome!
The MIT License (MIT), see LICENSE file.