gvisorgvisor.dev/gvisor/pkg/gvisordetect Index | Files

package gvisordetect

import "gvisor.dev/gvisor/pkg/gvisordetect"

Package gvisordetect implements a library that callers may use to detect whether they are running on a gVisor kernel, assuming it is configured to expose the gVisor marker file.

Index

Functions

func RunningInGVisor

func RunningInGVisor() (bool, error)

RunningInGVisor checks if the caller is running against a gVisor kernel. This is only accurate if the gVisor kernel is configured to expose its marker file.

Source Files

gvisordetect.go

Version
v0.0.0-20250723190226-d335069c7ec4 (latest)
Published
Jul 23, 2025
Platform
linux/amd64
Imports
3 packages
Last checked
10 hours ago

Tools for package owners.