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-20250815195609-e653176be184 (latest)
Published
Aug 15, 2025
Platform
linux/amd64
Imports
3 packages
Last checked
2 days ago

Tools for package owners.