lxc
manages Linux containers using the LXD REST API
TLDR
SYNOPSIS
lxc command [options]
DESCRIPTION
lxc manages Linux containers using the LXD REST API. It provides a user-friendly interface for creating, managing, and interacting with system containers and virtual machines.
PARAMETERS
list
List containersimage list
List available imagesinit
Create container from imagestart
Start containerstop
Stop containerinfo
Show container detailssnapshot
Create container snapshotexec
Execute command in containerlaunch
Create and start a container (combines init + start)delete
Delete containercopy
Copy containermove
Move container between serversfile push|pull
Transfer files to/from containerconfig
Manage container configurationprofile
Manage container profilesnetwork
Manage networksstorage
Manage storage pools and volumesremote
Manage remote servers--debug
Show all debug messages--force-local
Force using the local unix socket-h, --help
Print help--project PROJECT
Override the source project-q, --quiet
Do not show progress information-v, --verbose
Show all information messages
CAVEATS
Requires LXD daemon running (lxd init to configure). Container names can be prefixed with remote server names for cluster operations. Manages both system containers and virtual machines. Note that lxc (LXD client) is distinct from the older lxc-* tools (liblxc).
HISTORY
lxc is the command-line client for LXD, originally developed by Canonical starting in 2014 as a next-generation container manager. LXD provides system containers (similar to lightweight VMs) and virtual machines, managed through a REST API that the lxc client communicates with.
SEE ALSO
lxc-attach(1), lxc-start(1), docker(1), podman(1)
