-
Notifications
You must be signed in to change notification settings - Fork 55
Closed
Description
Trying to install on a Beelink mini computer with docker. Using example yaml fiiles. Been googling but can't seem to find a solution I can understand and is pertinent to my case. Seems a common problem otherwise. As I got in the error message this: "is CONFIG_TUN enabled in your kernel?", I did double check that and it is enabled in the kernel. I'm not using Proxmox. If I do "modprobe tun" it returns nothing.
OS is Ubuntu, latest. This is a new install, so far only home assistant, portainer, and mosquitto are installed as containers.
My yaml:
tailscale-nginx:
image: tailscale/tailscale:latest
hostname: ha
environment:
- TS_AUTHKEY=tskey-auth-xxx-ephemeral=false
- TS_EXTRA_ARGS=--advertise-tags=tag:container
- TS_STATE_DIR=/var/lib/tailscale
- TS_USERSPACE=false
- TS_DEST_IP=192.168.50.163
volumes:
- ${PWD}/tailscale-nginx/state:/var/lib/tailscale
- /dev/net/tun:/dev/net/tun
#- /lib/modules:/lib/modules ##tried this but gave a different error
cap_add:
- net_admin
- sys_module
restart: unless-stopped
nginx:
image: nginx
depends_on:
- tailscale-nginx
network_mode: service:tailscale-nginx
privileged: true
[EDIT]
I added
devices:
- /dev/net/tun:/dev/net/tun
and it installed a running container. Hopefully that does it. I would delete this if I could, but otherwise mark closed.
Metadata
Metadata
Assignees
Labels
No labels