diff --git a/internal/tun/create.go b/internal/tun/create.go index 1fe07a357..5c5c5242a 100644 --- a/internal/tun/create.go +++ b/internal/tun/create.go @@ -34,6 +34,9 @@ func (t *Tun) Create(path string) (err error) { fd, err := unix.Open(path, 0, 0) if err != nil { + if err.Error() == "operation not permitted" { + err = fmt.Errorf("%w (did you specify --device /dev/net/tun to your container command?)", err) + } return fmt.Errorf("unix opening TUN device file: %w", err) }