LXC

Open Source

by LXC

Provided by LXC

Not yet rated
Platform
Linux
Pricing
Open Source
Account required
No
Ads
None
Last verified
5 hours ago
Developer
LXC
Official URL

Overview

LXC is a userspace interface to the container features of the Linux kernel. It gives you a library and a set of simple command-line tools for creating and managing containers that behave much like a normal Linux installation but share the host's kernel. The project describes the result as something between a chroot and a full virtual machine.

Under the hood it combines kernel namespaces, cgroups, AppArmor and SELinux profiles, seccomp policies, capabilities and pivot_root. Day-to-day use is through commands such as lxc-create, lxc-start, lxc-attach, lxc-ls and lxc-destroy. The download template fetches ready-made images, letting you pick a distribution, release and architecture from the project's image server.

Containers can run unprivileged, which the documentation calls the safest option, though this needs subordinate user and group ID ranges and some extra configuration. Most Linux distributions package LXC. Long-term support releases are maintained for years: LXC 6.0 until June 2029 and LXC 5.0 until June 2027. It is aimed at system administrators and developers who want whole-system containers rather than single-application ones.

Features

  • Creates system containers that share the host's Linux kernel
  • Command-line tools including lxc-create, lxc-start, lxc-attach, lxc-ls and lxc-destroy
  • Download template pulls prebuilt images by distribution, release and architecture
  • Unprivileged containers using user and group ID mapping
  • Isolation through namespaces, cgroups, AppArmor, SELinux and seccomp
  • liblxc library with bindings for Python 3, Lua, Go, Ruby and Haskell
  • lxc-checkconfig command to confirm kernel support
  • Long-term support releases maintained for several years

Privacy

See the official privacy policy. LXC is open-source software that runs entirely on your own Linux host with no account.

Pros & Cons

Pros

  • Free and open source, mostly under the LGPL 2.1 or later
  • Lighter than a virtual machine because no separate kernel is run
  • Packaged by most Linux distributions
  • Long support windows for LTS releases
  • Stable C API with bindings for several languages

Cons

  • Linux only
  • Unprivileged containers take manual setup of ID maps and network permissions
  • Low-level command-line tooling with a learning curve
  • Security fixes for stable releases depend on your distribution shipping them

Community Reviews (0)

No written reviews yet — be the first to rate this tool.

Similar Tools

  • Containers · Docker

    Builds, ships, and runs applications in containers.

    Not yet rated
    Freemium Windows Linux
  • Containers · Podman

    Builds and runs containers without a daemon.

    Not yet rated
    Open Source Windows Linux
  • Containers · Docker

    Defines and runs multi-container applications.

    Not yet rated
    Open Source Windows Linux