ddclient: how to install as a Docker Container

ddclient: how to install as a Docker Container

The ddclient program is used to do dynamic IP updates to a wide range of dynamic DNS servers. I like to run ddclient as a separate Docker container for easy updates, and minimal host system manipulation. I’ll be using Docker built on top of Ubuntu Server 16.04.

Preparation:

For the dynamic DNS system I will be using Namecheap domain provider. Once you have configured Namecheap you will need three pieces of information:

I want to create a Dynamic DNS record of: remote.techgrowingpains.com

login:

techgrowingpains.com

password:

<Dynamic DNS password>

sub-domain(s):

remote

Note: You can add multiple sub-domains separated by commas.

Host System Set-Up:

We will need to get the user and group IDs for account creating the Docker ddclient container on the Docker host system with the id <account> command.

The ‘javier’ user ID ‘uid’ is 1000
The ‘javier’ group ID ‘gid’ is 1000

Next, create the ddclient configuration directory, and adjust folder permissions, on the host docker file system. For my purposes I use the /opt/containters/parent directory for organizational purposes.