2022-01-22 19:28:05 +00:00
# distrobox-enter
2023-11-26 17:02:06 +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-11-19 21:07:13 +00:00
> More information: <https://distrobox.it/usage/distrobox-enter>.
2022-10-17 22:13:45 +01:00
2023-11-26 17:02:06 +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-11-26 17:02:06 +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-11-26 17:02:06 +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}}`