2022-01-22 19:28:05 +00:00
# distrobox-enter
2023-03-02 16:20:46 +00:00
> Enter a distrobox container. See also: `tldr distrobox`.
2023-03-19 11:35:00 +00:00
> Default command executed is your SHELL, but you can specify different shells or entire commands to execute. If used inside a script, an application, or a service, you can use the `--headless` mode to disable the tty and interactivity.
2023-03-02 16:20:46 +00:00
> More information: <https://distrobox.privatedns.org/usage/distrobox-enter.html>.
2022-10-17 22:13:45 +01:00
2023-03-02 16:20:46 +00:00
- Enter a distrobox container:
2022-10-17 22:13:45 +01:00
2023-03-19 11:35:00 +00:00
`distrobox-enter {{container_name}}`
2022-01-22 19:28:05 +00:00
2023-03-19 11:35:00 +00:00
- Enter a distrobox container and run a command at login:
2022-01-22 19:28:05 +00:00
2023-03-19 11:35:00 +00:00
`distrobox-enter {{container_name}} -- {{sh -l}}`
2022-01-22 19:28:05 +00:00
2023-03-19 11:35:00 +00:00
- Enter a distrobox container without instantiating a tty:
2022-01-22 19:28:05 +00:00
2023-03-19 11:35:00 +00:00
`distrobox-enter --name {{container_name}} -- {{uptime -p}}`