You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This document describes build-time options, including Go build tags for omitting certain network and port drivers.
4
+
5
+
## Build tags to omit drivers
6
+
7
+
To exclude specific drivers at compilation time, use Go build tags:
8
+
9
+
- Tag `no_vpnkit`: omits the VPNKit network driver implementation.
10
+
- Tag `no_gvisortapvsock`: omits the gvisor-tap-vsock network driver implementation and its port driver.
11
+
- Tag `no_slirp4netns`: omits the slirp4netns network driver implementation and its port driver.
12
+
- Tag `no_lxcusernic`: omits the lxc-user-nic network driver implementation.
13
+
14
+
Example:
15
+
16
+
- Build without VPNKit support:
17
+
go build -tags no_vpnkit ./cmd/rootlesskit
18
+
19
+
Notes:
20
+
- If a disabled driver is selected at runtime (e.g., `--net=vpnkit` when built with `-tags no_vpnkit`), RootlessKit returns an error indicating that the driver was disabled at build time.
0 commit comments