binfmt

package
v1.38.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 20, 2025 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MaybeRegister

func MaybeRegister(configurationSearchDirectories []string) error

MaybeRegister() calls Register() if the current context is a rootless one, or if the "container" environment variable suggests that we're in a container.

func Register

func Register(configurationSearchDirectories []string) error

Register() registers binfmt.d emulators described by configuration files in the passed-in slice of directories, or in the union of /etc/binfmt.d, /run/binfmt.d, and /usr/lib/binfmt.d if the slice has no items. If any emulators are configured, it will attempt to mount a binfmt_misc filesystem in the current mount namespace first, ignoring only EPERM and EACCES errors.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL