incus

system container and virtual machine manager

TLDR

Initialize Incus
$ incus admin init
Launch a container
$ incus launch images:ubuntu/22.04 [container-name]
Launch a VM
$ incus launch images:ubuntu/22.04 [vm-name] --vm
List instances
$ incus list
Execute command in instance
$ incus exec [name] -- [command]
Open a shell in an instance
$ incus shell [name]
Copy a file into an instance
$ incus file push [local/path] [name]/[remote/path]
Show detailed instance info
$ incus info [name]
Stop an instance
$ incus stop [name]
Delete an instance
$ incus delete [name]

SYNOPSIS

incus command [options]

DESCRIPTION

incus is a system container and virtual machine manager. Community fork of LXD, maintained by the Linux Containers project. Manages containers via LXC and VMs via QEMU through a unified CLI and REST API. Supports local and remote access, profiles, storage pools, and networking.

SUBCOMMANDS

admin init

Initialize Incus.
launch image name
Create and start instance.
start name
Start instance.
stop name
Stop instance.
delete name
Delete instance.
exec name -- cmd
Run command in instance.
shell name
Open an interactive shell in an instance.
info name
Show detailed instance configuration and state.
file push|pull|edit
Transfer or edit files inside an instance.
list
List all instances.
image list
List available images.
copy
Copy instances.
move
Move instances.
snapshot
Manage snapshots.

INSTALL

sudo apt install incus-client
sudo dnf install incus-client
sudo pacman -S incus
sudo apk add incus-client
sudo zypper install incus
brew install incus
nix profile install nixpkgs#incus

SEE ALSO

lxc(1), docker(1)