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
Copy file name to clipboardExpand all lines: docs/network.md
+3-15Lines changed: 3 additions & 15 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -271,25 +271,13 @@ The child command can enter `$ROOTLESSKIT_STATE_DIR/netns` by itself to create n
271
271
272
272
## Build tags to omit drivers
273
273
274
-
To exclude specific drivers at compilation time, use Go build tags:
274
+
Build-time driver selection is documented in BUILDING.md.
275
275
276
-
- Tag no_vpnkit: omits the VPNKit network driver implementation.
277
-
- Tag no_gvisortapvsock: omits the gvisor-tap-vsock network driver implementation and its port driver.
278
-
- Tag no_slirp4netns: omits the slirp4netns network driver implementation and its port driver.
279
-
- Tag no_lxcusernic: omits the lxc-user-nic network driver implementation.
280
-
281
-
Examples:
276
+
Example:
282
277
283
278
- Build without VPNKit support:
284
279
go build -tags no_vpnkit ./cmd/rootlesskit
285
280
286
-
- Build without gvisor-tap-vsock support (also disables the gvisor-tap-vsock port driver):
287
-
go build -tags no_gvisortapvsock ./cmd/rootlesskit
288
-
289
-
- Build without slirp4netns support (also disables the slirp4netns port driver):
290
-
go build -tags no_slirp4netns ./cmd/rootlesskit
291
-
292
-
- Build without lxc-user-nic support:
293
-
go build -tags no_lxcusernic ./cmd/rootlesskit
281
+
Note: CI should test all supported combinations of these build tags.
294
282
295
283
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