docker安装,安装完了之后内网完全不能访问服务器,有大佬解答下吗?
下面是compose配置
version: "3.7"
services:
tailscale:
image: tailscale/tailscale:latest
hostname: Tailscale
container_name: tailscale
environment:
- TS_AUTHKEY=tskey-auth-**************************************
- TS_EXTRA_ARGS=--accept-routes --reset --accept-dns=false
- TS_STATE_DIR=/var/lib/tailscale
- TS_USERSPACE=false
- TS_ROUTES=192.168.10.0/24,192.168.1.0/24
- TS_HOSTNAME=Tailscale
volumes:
- /var/lib:/var/lib:rw
- /mnt/sata1-4/dockerconfig/tailscale/lib:/var/lib/tailscale
devices:
- /dev/net/tun:/dev/net/tun
cap_add:
- net_admin
- sys_module
restart: unless-stopped
下面是compose配置
version: "3.7"
services:
tailscale:
image: tailscale/tailscale:latest
hostname: Tailscale
container_name: tailscale
environment:
- TS_AUTHKEY=tskey-auth-**************************************
- TS_EXTRA_ARGS=--accept-routes --reset --accept-dns=false
- TS_STATE_DIR=/var/lib/tailscale
- TS_USERSPACE=false
- TS_ROUTES=192.168.10.0/24,192.168.1.0/24
- TS_HOSTNAME=Tailscale
volumes:
- /var/lib:/var/lib:rw
- /mnt/sata1-4/dockerconfig/tailscale/lib:/var/lib/tailscale
devices:
- /dev/net/tun:/dev/net/tun
cap_add:
- net_admin
- sys_module
restart: unless-stopped