LinuxCommandLibrary
GitHubF-DroidGoogle Play Store

incus

system container and virtual machine manager

TLDR

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

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
copy
sudo dnf install incus-client
copy
sudo pacman -S incus
copy
sudo apk add incus-client
copy
sudo zypper install incus
copy
brew install incus
copy
nix profile install nixpkgs#incus
copy

SEE ALSO

lxc(1), docker(1)

Copied to clipboard
Kai