← 返回命令列表

Linux command

incus 命令

文本

复制后可按需替换文件名、目录或参数。

常用示例

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 shell in instance

incus exec [name] -- bash

Stop an instance

incus stop [name]

Delete an instance

incus delete [name]

说明

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.

FAQ

What is the incus command used for?

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.

How do I run a basic incus example?

Run `incus admin init` in a terminal, then adjust file names, paths, flags, or remote targets for your system.

Where can I find more incus examples?

This page includes 8 examples for incus, plus related commands for nearby Linux tasks.