LinuxCommandLibrary

distrobox-enter

enter and run commands in Distrobox containers

TLDR

Enter a container

$ distrobox-enter [container_name]
copy
Enter and run a command
$ distrobox-enter [container_name] -- [sh -l]
copy
Enter without TTY (for scripts)
$ distrobox-enter -n [container_name] -- [uptime --pretty]
copy

SYNOPSIS

distrobox-enter [options] [name] [-- command]

DESCRIPTION

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 --headless mode to disable TTY and interactivity.

PARAMETERS

-n, --name name

Container name
-e, --env var=value
Set environment variable
--headless
Disable TTY (for scripts)
--no-workdir
Don't change to current directory
-- command
Command to execute

CAVEATS

Container must exist (create with distrobox-create). First entry initializes the container which takes longer. Commands after -- are passed to the container.

SEE ALSO

> TERMINAL_GEAR

Curated for the Linux community

Copied to clipboard

> TERMINAL_GEAR

Curated for the Linux community