Skip to content

Commit 3ad9ef0

Browse files
authored
docs: update tips for using custom SHELL in assemble, Fix #1633 (#1825)
1 parent 526798f commit 3ad9ef0

File tree

2 files changed

+13
-0
lines changed

2 files changed

+13
-0
lines changed

docs/usage/distrobox-assemble.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -207,3 +207,9 @@ each option corresponds to one of the `create` flags.
207207
replace=true
208208
start_now=true
209209
pre_init_hooks=curl -fsSL https://bun.sh/install | bash;
210+
211+
**Custom login shell example**
212+
213+
[ubuntu]
214+
image=ubuntu:latest
215+
pre_init_hooks="export SHELL=/bin/bash;"

docs/useful_tips.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,13 @@ SHELL=/bin/zsh distrobox create -n test
8686
SHELL=/bin/zsh distrobox enter test
8787
```
8888

89+
If you want to declaratively set a custom shell for each container when using `distrobox assemble`,
90+
you can achieve this by using the `pre_init_hooks` option. For example:
91+
92+
```ini
93+
pre_init_hooks="export SHELL=/bin/bash;"
94+
```
95+
8996
## Run the container with real root
9097

9198
When using podman, distrobox will prefer to use rootless containers. In this mode the `root`

0 commit comments

Comments
 (0)