package userns

import "github.com/opencontainers/runc/libcontainer/userns"

Deprecated: use github.com/moby/sys/userns

Index

Functions

func RunningInUserNS

func RunningInUserNS() bool

RunningInUserNS detects whether we are currently running in a Linux user namespace and memoizes the result. It returns false on non-Linux platforms.

Deprecated: use userns.RunningInUserNS.

Source Files

userns_deprecated.go

Version
v1.2.6 (latest)
Published
Mar 14, 2025
Platform
linux/amd64
Imports
1 packages
Last checked
1 hour ago

Tools for package owners.