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-20250515200445-d30c58e5b8a4 (latest)
Published
May 15, 2025
Platform
linux/amd64
Imports
3 packages
Last checked
24 minutes ago

Tools for package owners.