You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I would like to passthrough a directory under /home to the container. How do I go about doing this? Is there some config files that I can edit for each container?
I'm on Fedora 31, the path /var/run/host/var/home is not found. There are various things under /var/run/host/var but not the home directory. I have intel compiler installed under /home/intel and to use it normally one must source the file psxevars.sh when lauching a shell, which is located under /home/intel/parallel_studio_xe__/
Sorry I am a version behind, all I can suggest is having a look around in /var/run/host. From the docs I still think /home should be a symlink to /var/home; but I can't test at the moment. Good luck.
The definition of /home depends on whether you are on Silverblue or not. On Silverblue /home is a symbolic link to /var.
Containers created with recent versions of Toolbox make the host's /var available at /run/host/var inside the container. So, if you use /var/intel on the host, instead of /home/intel, then what @maxwell-k suggested should work.
Sorry, but I disagree with that notion. /var should not be a dumping place for programs and tool-chains...And honestly, I should get to decide where I want to put my tool-chains...They were installed to /home, many years ago before I came to use podman or toolbox. Normally, I would have opted to put them under /opt but did not due to partition layout.
@Fatmice One of Red Hat's own developers suggested that there be an option to add additional mount points under / on Silverblue over a year ago, but the idea was never acted on:
I gave up and moved on to Arch Linux. Silverblue is too inflexible and a key issue like this is seeing little progress. Maybe in another couple years I'll check back in and see what progress there's been.
Maybe there's merit to having just one r/w partition and have that be named "/var", but there are multiple decades of software built on the assumption that "/home" physically exists.
For Silverblue to gain traction faster it seems prudent to support some kind of transition or compatibility solution where other mount points can be supported, as one their own team members suggested.
@markstos I personally do not mind if there is only one r/w partition and it must be /var but at least allow mounting something else read-only, like /home/intel... Or at least someway to pass an abitrary link through that's read-only. I could maybe understand why they find this slippery as it might somehow introduces backdoors where one could escape, but then again I don't think that alone should make this thing so limiting.
Containers created with recent versions of Toolbox make the host's
/var available at /run/host/var inside the container.
Even more recent versions of Toolbx (newer than 0.0.99.3, to be precise) make the entire / from the host available at /run/host. So, containers created with Toolbx >= 0.0.99.3 will have /run/host/home regardless of whether it's Fedora Silverblue or Workstation.
Activity
maxwell-k commentedon Nov 15, 2019
Did you check in
/var/run/host/var/home? On Fedora Silverblue 30 this contains the home directory.Fatmice commentedon Nov 15, 2019
I'm on Fedora 31, the path /var/run/host/var/home is not found. There are various things under /var/run/host/var but not the home directory. I have intel compiler installed under /home/intel and to use it normally one must source the file psxevars.sh when lauching a shell, which is located under /home/intel/parallel_studio_xe__/
maxwell-k commentedon Nov 15, 2019
Sorry I am a version behind, all I can suggest is having a look around in
/var/run/host. From the docs I still think/homeshould be a symlink to/var/home; but I can't test at the moment. Good luck.debarshiray commentedon Nov 19, 2019
The definition of
/homedepends on whether you are on Silverblue or not. On Silverblue/homeis a symbolic link to/var.Containers created with recent versions of Toolbox make the host's
/varavailable at/run/host/varinside the container. So, if you use/var/intelon the host, instead of/home/intel, then what @maxwell-k suggested should work.markstos commentedon Dec 26, 2019
This relates to #183, which is a feature request not mount
/homeby default and instead support mounting just specific directories in the container.debarshiray commentedon Jan 10, 2020
I am tentatively closing this based on the idea of using
/var/intelinstead of/home/intel.Fatmice commentedon Jan 11, 2020
Sorry, but I disagree with that notion. /var should not be a dumping place for programs and tool-chains...And honestly, I should get to decide where I want to put my tool-chains...They were installed to /home, many years ago before I came to use podman or toolbox. Normally, I would have opted to put them under /opt but did not due to partition layout.
markstos commentedon Jan 13, 2020
@Fatmice One of Red Hat's own developers suggested that there be an option to add additional mount points under / on Silverblue over a year ago, but the idea was never acted on:
coreos/rpm-ostree#1711
I gave up and moved on to Arch Linux. Silverblue is too inflexible and a key issue like this is seeing little progress. Maybe in another couple years I'll check back in and see what progress there's been.
Maybe there's merit to having just one r/w partition and have that be named "/var", but there are multiple decades of software built on the assumption that "/home" physically exists.
For Silverblue to gain traction faster it seems prudent to support some kind of transition or compatibility solution where other mount points can be supported, as one their own team members suggested.
Fatmice commentedon Jan 13, 2020
@markstos I personally do not mind if there is only one r/w partition and it must be /var but at least allow mounting something else read-only, like /home/intel... Or at least someway to pass an abitrary link through that's read-only. I could maybe understand why they find this slippery as it might somehow introduces backdoors where one could escape, but then again I don't think that alone should make this thing so limiting.
debarshiray commentedon Aug 5, 2022
Even more recent versions of Toolbx (newer than 0.0.99.3, to be precise) make the entire
/from the host available at/run/host. So, containers created with Toolbx >= 0.0.99.3 will have/run/host/homeregardless of whether it's Fedora Silverblue or Workstation.Fatmice commentedon Aug 6, 2022
This is very good to hear
markstos commentedon Aug 8, 2022
Where is this document? I don't see it in the main README or in the docs for the
createcommand:https://github.com/containers/toolbox/blob/main/doc/toolbox-create.1.md