crocandr / docker-tinc Goto Github PK
View Code? Open in Web Editor NEWTinc VPN service in docker
Tinc VPN service in docker
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
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.