lxc或者docker内直接运行tailscale up会提示
failed to connect to local tailscaled (which appears to be running as tailscaled, pid 4722). Got error: 503 Service Unavailable: no backend
或者
failed to connect to local tailscaled (which appears to be running as tailscaled, pid 2695). Got error: Failed to connect to local Tailscale daemon for /localapi/v0/status; systemd tailscaled.service not running. Error: dial unix /var/run/tailscaled.socket: connect: no such file or directory
即便是已经启动了 tailscaled服务也是如此,最后发现是tun的问题。
lxc配置文件添加 两行
|
|
如果lxc同时运行docker,注意 上面两行要加到lxc套docker的粮行配置后面。参考配置
|
|
关闭ct容器 重新启动即可
docker下运行的花,同样需要映射 /dev/net/tun 到容器内