GithubHelp home page GithubHelp logo

docker-tinc's Issues

Generates new key at every startup

After syncing hosts I need to restart the container to load the new hosts, but when restarting it creates a new private key for itself:

tinc_1  | STARTED: Tue 17 Nov 2020 11:58:29 AM CET
tinc_1  | Generating 4096 bits keys:
tinc_1  | .......................................++++ p
tinc_1  | ........................................++++ q
tinc_1  | Done.
tinc_1  | Warning: old key(s) found and disabled.

This creates an loop scenario that makes it impossible to use this image.

It appears the entrypoint script does attempt to check if a key already exists, but it generates a new key regardless.

docker-compose:

  tinc:
    image: croc/tinc
    ports:
      - 26488:26488/tcp
      - 26488:26488/udp
    environment:
      - SITENAME=test
      - PORT=26488
      - PUBADDR=mydomain
      - LANIP=10.131.1.253/24
      - SUBNET=10.131.1.0/24
    volumes:
      - './tinc:/etc/tinc/site2site/hosts'
      - '/etc/localtime:/etc/localtime:ro'
    cap_add: ['net_admin']
    devices: ['/dev/net/tun:/dev/net/tun']
    restart: always

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.