DISTROBOX-ENTER(1)
πΈ DISTROBOX-ENTER(1) β the user manual, bestie edition π
okay so you opened the manual for distrobox-enter (yes, the man page is literally called DISTROBOX-ENTER(1), and it lives in the User Manual section). sit down, grab a strawberry π, and let's get you inside your container. no cap, this one's a banger.
β¨ NAME β¨
distrobox enter distrobox-enter
that's it, that's the name. it's giving "one job, iconic execution." π
π DESCRIPTION π
distrobox-enter handles the whole getting you into the container with the name you specified thing. that's the vibe. π¦
by default the command it runs for you is your SHELL, but bestie you are not locked in β you can name a different shell, or yeet an entire command in there to run instead. and if you're calling this from inside a script, an application, or a service (iykyk), you can flip on the --headless mode to disable the tty and the interactivity. no terminal, no chatting, just vibes and execution. periodt.
π SYNOPSIS π
distrobox enter
and here are all the flags, every single one, no skips:
--name,-nβ the name for the distrobox. default:my-distrobox--,-eβ end the arguments here, and execute the rest of them as the command to run at login. default: your default${USER}'s shell--no-tty,-Tβ do not instantiate a tty. no tty for you, bestie π--no-workdir,-nwβ always start the container from the container's home directory--additional-flags,-aβ extra flags to pass along to the container manager command--help,-hβ show this message--root,-rβ launchpodman/docker/lilipodwith root privileges. quick note: if you need root, this is the preferred way oversudo distrobox. (and another note: if you need to use a program other thansudoto get root privileges, specify it through theDBX_SUDO_PROGRAMenv variable, or thedistrobox_sudo_programconfig variable) π--dry-run,-dβ only print out the container manager command that would be generated. look, don't touch.--verbose,-vβ show more verbosity--version,-Vβ show version
π EXAMPLES π
enter a distrobox named "example"
distrobox-enter example
slay, you're in.
enter a distrobox and specify a command
distrobox-enter --name fedora-toolbox-35 -- bash -l
distrobox-enter my-alpine-container -- sh -l
look at you, picking your own shell like a main character.
use additional podman/docker/lilipod flags while entering a distrobox
distrobox-enter --additional-flags "--preserve-fds" --name test -- bash -l
specify additional environment variables while entering a distrobox
distrobox-enter --additional-flags "--env MY_VAR=value" --name test -- bash -l
MY_VAR=value distrobox-enter --additional-flags "--preserve-fds" --name test -- bash -l
two ways, both valid, both cute. π
you can also use environment variables to specify the container manager and the container name
DBX_CONTAINER_MANAGER="docker" DBX_CONTAINER_NAME=test-alpine distrobox-enter
π§ ENVIRONMENT VARIABLES π§
DBX_CONTAINER_NAMEDBX_CONTAINER_MANAGERDBX_SKIP_WORKDIRDBX_SUDO_PROGRAM
β EXTRA β
this command is what you use to enter the distrobox itself. personally? the author literally just creates multiple profiles in their gnome-terminal so they have multiple distros accessible at once. honestly, relatable. πΈ
the --additional-flags (or -a) is useful when you want to modify the default command that gets executed in the container. for example:
distrobox enter -n dev-arch --additional-flags "--env my_var=test" -- printenv &| grep my_var
my_var=test
and this is possible with normal env variables too:
my_var=test distrobox enter -n dev-arch --additional-flags -- printenv &| grep my_var
my_var=test
now, if you'd like to enter a rootful container and you want distrobox to use a program other than sudo to run podman/docker/lilipod as root β something like pkexec or doas β you can specify it with the DBX_SUDO_PROGRAM environment variable. for example, to use doas to enter a rootful container:
DBX_SUDO_PROGRAM="doas" distrobox enter -n container --root
and additionally: in one of the config file paths that distrobox supports β such as ~/.distroboxrc β you can also append the line distrobox_sudo_program="doas" (for example) to always run distrobox commands involving rootful containers using doas. set it once, forget it forever. that's the dream. π«
and that's the whole page, bestie!! this manual came from the Distrobox source (version dated Mar 2026), and yes, DISTROBOX-ENTER(1) is the official name on the tin. now go forth and enter something. π«Άβ¨π
π¦ where this page comes from
- alpine 3.24: distrobox-doc 1.8.2.5-r0 Β· GPL-3.0-only
- arch rolling: distrobox 1.8.2.5-1 Β· GPL-3.0-only
- epel 10: distrobox 1.8.2.5-1.el10_3 Β· GPL-3.0-only
- epel 9: distrobox 1.8.2.5-1.el9 Β· GPL-3.0-only
- fedora 43: distrobox 1.8.2.5-1.fc43 Β· GPL-3.0-only
- fedora 44: distrobox 1.8.2.5-1.fc44 Β· GPL-3.0-only
- nixos 26.05: distrobox 1.8.2.5
- nixpkgs unstable: distrobox 1.8.2.5
- ubuntu stonking: distrobox 1.8.2.5-1 Β· GPL-3.0-only
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms