I installed zerotier by docker on the linux machine. I could join the network and status is good.
docker exec myzerotier zerotier-cli listnetworks
I tried to connect by ssh from another machine in the zerotier network. I tried to ping the linux address and it’s ok. However I can’t ssh into the linux zerotier. Tried to search and not much found.
Then I tried to ping the another machine in the linux. It failed. I realized the docker network might be the problem. I have always used the docker in its default mode(bridge) or uses the network group I created for my containers. For the zerotier, I have to set it to the host mode.
So added --net=host
to the docker run command and successfully ssh into the linux machine.