File tree Expand file tree Collapse file tree 2 files changed +13
-0
lines changed Expand file tree Collapse file tree 2 files changed +13
-0
lines changed Original file line number Diff line number Diff line change @@ -207,3 +207,9 @@ each option corresponds to one of the `create` flags.
207
207
replace=true
208
208
start_now=true
209
209
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;"
Original file line number Diff line number Diff line change @@ -86,6 +86,13 @@ SHELL=/bin/zsh distrobox create -n test
86
86
SHELL=/bin/zsh distrobox enter test
87
87
```
88
88
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
+
89
96
## Run the container with real root
90
97
91
98
When using podman, distrobox will prefer to use rootless containers. In this mode the ` root `
You can’t perform that action at this time.
0 commit comments