← 返回命令列表

Linux command

distrobox-enter 命令

文本

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

常用示例

Enter

distrobox-enter [container_name]

Example

distrobox-enter [container_name] -- [sh -l]

Example

distrobox-enter -T [container_name] -- [uptime --pretty]

说明

distrobox-enter enters a Distrobox container. By default it runs your $SHELL, but you can specify different shells or entire commands. For scripts, applications, or services, use --no-tty to disable TTY and interactivity.

参数

-n, --name _name_
Container name (defaults to my-distrobox)
-T, --no-tty
Do not instantiate a tty (for scripts)
-nw, --no-workdir
Start from the container's home directory instead of the current directory
-a, --additional-flags _flags_
Additional flags passed to the container manager command
-r, --root
Launch podman/docker with root privileges
-d, --dry-run
Only print the container manager command generated
-v, --verbose
Show increased verbosity
-- command
Terminate option parsing; remaining arguments are executed inside the container

FAQ

What is the distrobox-enter command used for?

distrobox-enter enters a Distrobox container. By default it runs your $SHELL, but you can specify different shells or entire commands. For scripts, applications, or services, use --no-tty to disable TTY and interactivity.

How do I run a basic distrobox-enter example?

Run `distrobox-enter [container_name]` in a terminal, then adjust file names, paths, flags, or remote targets for your system.

What does -n, --name _name_ do in distrobox-enter?

Container name (defaults to my-distrobox)