LinuxCommandLibrary
GitHubF-DroidGoogle Play Store

lxc-checkconfig

checks whether the current kernel has the required features enabled for LXC

TLDR

Check current kernel support
$ lxc-checkconfig
copy
Check specific kernel config
$ CONFIG=/path/to/config lxc-checkconfig
copy

SYNOPSIS

lxc-checkconfig

DESCRIPTION

lxc-checkconfig checks whether the current kernel has the required features enabled for LXC container support. It examines namespaces, cgroups, and other kernel capabilities.

CHECKS PERFORMED

Namespaces: User, PID, UTS, IPC, NetworkCgroups: v1/v2, controllersMisc: Seccomp, checkpoint/restore

INSTALL

sudo apt install lxc
copy
sudo dnf install lxc
copy
sudo pacman -S lxc
copy
sudo apk add lxc
copy
sudo zypper install lxc
copy
brew install lxc
copy
nix profile install nixpkgs#lxc
copy

CAVEATS

Set CONFIG environment variable to check a different kernel configuration file. Helps diagnose why containers might not work on a system.

SEE ALSO

Copied to clipboard
Kai