Skip to content

Commit

Permalink
Expose a few more host locations inside the container under /run/host
Browse files Browse the repository at this point in the history
This is meant to alleviate some of the pain of not being able to modify
the list of bind mounts once a toolbox container has been created. For
some cases, especially where read-only access is enough, one can get
by with setting up symbolic links inside the toolbox container.

Based on an idea from Colin Walters.

https://github.com/debarshiray/toolbox/pull/264
  • Loading branch information
debarshiray committed Sep 18, 2019
1 parent 28833fc commit d63b0a9
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions toolbox
Expand Up @@ -872,6 +872,10 @@ create()
--volume /dev:/dev:rslave \
--volume /media:/media:rslave \
--volume /mnt:/mnt:rslave \
--volume /run:/run/host/run:rslave \
--volume /tmp:/run/host/tmp:rslave \
--volume /usr:/run/host/usr:rslave \

This comment has been minimized.

Copy link
@fmuellner

fmuellner Sep 20, 2019

For some reason, I cannot enter a toolbox that was created without that line removed (on current F31 Silverblue).

This comment has been minimized.

Copy link
@debarshiray

debarshiray Feb 15, 2021

Author Member

This was fixed in #276

My apologies. I forgot to close the loop by replying here.

--volume /var:/run/host/var:rslave \
"$base_toolbox_image_full" \
toolbox --verbose init-container \
--home "$HOME" \
Expand Down

0 comments on commit d63b0a9

Please sign in to comment.