Code Monkey home page Code Monkey logo

no-ip's Introduction

Docker Pulls Docker Image Size (tag)

Tags

NO-IP Dynamic DNS Update Client

A simple Docker container for running the NO-IP dynamic DNS update script. It will keep current IP address in sync with your No-IP host or domain.

โš ๏ธ Raspberry Pi users running 32 bit systems: The latest alpine update causes high cpu utilization. You can either use tag 3.12, which uses alpine:1.12 or update libseccomp

Usage

Running the container

There are two ways of running this container. As a regular container and as a service.

Regular container:

Running the image as a regular container uses environment variables to pass username, password, domains and interval from the host to the container.

docker container run -d -e USERNAME=user1 -e PASSWORD=123 -e "DOMAINS=domain1.ddns.net" -e INTERVAL=5 aanousakis/no-ip

You can add multiple domains ex "DOMAINS=domain1.ddns.net domain2.ddns.net domain.foo.com"

As a service:

Running the image as a service uses secrets to pass username, password, domains and interval from the host to the container.

First you have to install docker compose

installation instructions

Then download docker-compose.yml file and the scripts to set Docker secrets.

git clone https://github.com/aanousakis/no-ip.git    
cd no-ip/

Then you can deploy the service with :

docker swarm init
./deploy.sh 

The deploy.sh script will ask for your username, password, domains and update interval. Then it will set the secrets and start a service called no-ip_service.

The service if configured to restart if an error occurs.

Building the image

The image in Docker hub is build for the x86_64 architecture and cannot run on other platforms. If, for example, you want to run it on a host with arm architecture, you must build the image in that host.

git clone https://github.com/aanousakis/no-ip.git    
cd no-ip/
docker build --tag=aanousakis/no-ip .

Author

  • Antony Anousakis

no-ip's People

Contributors

aanousakis avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

no-ip's Issues

Unable to get it working on raspberry pi 3b with casaOS

I just tried to make this one work, since the other no-ip clients i've tested doesn't work for the arm architecture, when i import the docker CLI command to casaOS, it installs without any issues, but when it tries to run, i get the following in the console:

Check and import env variables
Checking filename env variables
Secret filenames doesn't exist
Checking if env variables exist
env variables exist
Starting process to generate config file


** Configuration **


username xxx
password xxx
domains xxx.hopto.org
interval 5
Found 1 adapters
spawn noip2 -C -c /config/no-ip2.conf

Auto configuration for Linux client of no-ip.com.

Can't gethostbyname for dynupdate.no-ip.com
Network must be operational to create configfile. Ending!
expect: spawn id exp3 not open
while executing
"expect -exact "$username\r\nPlease enter the password for user '$username' " {send -- "$password\r" }"
(file "./script.exp" line 154)
Failed to start noip2 -C : 1

Latest release seems to freeze at spawn noip2 and causes 100% CPU utilization

Hi,
first of all thanks for the cool utility.
There seems to be a problem with the latest image:
The previous image:
aanousakis/no-ip@sha256:3783fd7162b35de1ca8257b9fe22776ddfc0db88ab78f2de8b80fb1230d37876
seems to work fine.
The latest one:
aanousakis/no-ip@sha256:011ad8c54e8f597da8c297400c841a48b41cebd0fb75a4a1771464590ccd71e9
not.

Container log:
Check and import env variables
Checking filename env variables
Secret filenames doesn't exist
Checking if env variables exist
env variables exist
Starting process to generate config file


** Configuration **


username ######
password ############
domains #######
interval 5
Found 1 adapters
spawn noip2 -C

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.