docs: update tips for using custom SHELL in assemble, Fix #1633 (#1825)

This commit is contained in:
Coldle
2025-08-24 15:46:32 +02:00
committed by GitHub
parent 526798f210
commit 3ad9ef0dc8
2 changed files with 13 additions and 0 deletions
+6
View File
@@ -207,3 +207,9 @@ each option corresponds to one of the `create` flags.
replace=true
start_now=true
pre_init_hooks=curl -fsSL https://bun.sh/install | bash;
**Custom login shell example**
[ubuntu]
image=ubuntu:latest
pre_init_hooks="export SHELL=/bin/bash;"
+7
View File
@@ -86,6 +86,13 @@ SHELL=/bin/zsh distrobox create -n test
SHELL=/bin/zsh distrobox enter test
```
If you want to declaratively set a custom shell for each container when using `distrobox assemble`,
you can achieve this by using the `pre_init_hooks` option. For example:
```ini
pre_init_hooks="export SHELL=/bin/bash;"
```
## Run the container with real root
When using podman, distrobox will prefer to use rootless containers. In this mode the `root`