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, 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.
  • Loading branch information
debarshiray committed Sep 18, 2019
1 parent 28833fc commit e166e86
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions toolbox
Original file line number Diff line number Diff line change
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 \
--volume /var:/run/host/var:rslave \
"$base_toolbox_image_full" \
toolbox --verbose init-container \
--home "$HOME" \
Expand Down

0 comments on commit e166e86

Please sign in to comment.