Skip to content

Commit ab07920

Browse files
committed
Add /dev/net/tun
Failed to build and run instance: libvirt.libvirtError: Unable to open /dev/net/tun, is tun module loaded?: No such file or directory Signed-off-by: Nobuhiro MIKI <nob@bobuhiro11.net>
1 parent d2b9464 commit ab07920

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

docker-compose.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@ services:
1313
- /run/lock
1414
volumes:
1515
- '/sys/fs/cgroup:/sys/fs/cgroup:ro'
16+
devices:
17+
- '/dev/net/tun:/dev/net/tun'
1618
sysctls:
1719
net.ipv6.conf.all.disable_ipv6: 0
1820
net.ipv6.conf.default.disable_ipv6: 0
@@ -34,6 +36,8 @@ services:
3436
- /run/lock
3537
volumes:
3638
- '/sys/fs/cgroup:/sys/fs/cgroup:ro'
39+
devices:
40+
- '/dev/net/tun:/dev/net/tun'
3741
sysctls:
3842
net.ipv6.conf.all.disable_ipv6: 0
3943
net.ipv6.conf.default.disable_ipv6: 0
@@ -55,6 +59,8 @@ services:
5559
- /run/lock
5660
volumes:
5761
- '/sys/fs/cgroup:/sys/fs/cgroup:ro'
62+
devices:
63+
- '/dev/net/tun:/dev/net/tun'
5864
sysctls:
5965
net.ipv6.conf.all.disable_ipv6: 0
6066
net.ipv6.conf.default.disable_ipv6: 0

0 commit comments

Comments
 (0)