← 返回命令列表

Linux command

distrobox 命令

文本

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

常用示例

Create a new container

distrobox create --name [mycontainer] --image [ubuntu:latest]

List all containers

distrobox list

Enter a container

distrobox enter [mycontainer]

Run a command inside a container

distrobox enter [mycontainer] -- [command]

Export an app from the container to the host

distrobox-export --app [application]

Upgrade all containers

distrobox upgrade --all

Stop a container

distrobox stop [mycontainer]

Remove a container

distrobox rm [mycontainer]

说明

distrobox allows running any Linux distribution inside a terminal container while tightly integrating with the host OS. Containers share the home directory, storage, and hardware access (including graphics and audio). Built on top of Podman or Docker, it provides seamless access to different distributions' package managers and software. Applications installed inside containers can be exported to appear in the host's application menu.

参数

create
Create a new container.
enter
Enter an existing container.
list
List containers created with distrobox.
rm
Remove a container.
stop
Stop a running container.
upgrade
Upgrade one or more containers.
--help, -h
Display help information.
--root
Run distrobox as root (using sudo/doas).

FAQ

What is the distrobox command used for?

distrobox allows running any Linux distribution inside a terminal container while tightly integrating with the host OS. Containers share the home directory, storage, and hardware access (including graphics and audio). Built on top of Podman or Docker, it provides seamless access to different distributions' package managers and software. Applications installed inside containers can be exported to appear in the host's application menu.

How do I run a basic distrobox example?

Run `distrobox create --name [mycontainer] --image [ubuntu:latest]` in a terminal, then adjust file names, paths, flags, or remote targets for your system.

What does create do in distrobox?

Create a new container.