Zerotier container - Unable to configure virtual network port

I want to access my home server (CasaOS on Rpi) using zero tier. I have installed the zerotier container on the casa. The docker compose file looked like this:

version: ‘3’
services:
zerotier:
image: zyclonite/zerotier
container_name: zerotier-one
devices:
- /dev/net/tun
network_mode: host
volumes:
- ‘/var/lib/zerotier-one:/var/lib/zerotier-one’
cap_add:
- NET_ADMIN
- SYS_ADMIN

My zerotier network includes my Android phone, windows laptop and the home server with zt clients installed and I can see all the devices assigned managed ips from zero tier. However, I am unable to connect to the home server through its managed ip from any other device on the network. I can ping my phone from the laptop as well as laptop to phone using the managed ip addresses.

While checking the container logs I see the following

So I checked the container settings which are as follows:
2

Do I need to enter something in the container field? Could this the underlying reason why I am unable to connect to my home server and how should I fix that?

Thanks for your support!

That should likely be ‘/dev/net/tun’ for both the host and container.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.