Skip to content

Tutorials

tituspijean edited this page Mar 24, 2020 · 1 revision

Use ZeroTier to connect your YunoHost Docker containers

If you want to host YunoHost on Windows, in Docker containers, you can use the following Powershell script. If you are on Linux, the command should be the same, you only have to change the line-end escaping characters.

docker run -d -h containerhostname --name=containername `
 --privileged `
 --device=/dev/net/tun `
 --cap-add=NET_ADMIN `
 --restart always `
 -p 80:80 `
 -p 22:22 `
 -p 443:443 `
 -v /host/directory:/media `
 domainelibre/yunohost3

Once your system is post-installed, you can install the zerotier_ynh app. In my case, I had to chmod 666 /dev/net/tun first, to allow ZeroTier's service to set its network interface:

chmod 666 /dev/net/tun
yunohost app install zerotier
Clone this wiki locally