You're likely hitting SELinux issues. By default, unprivileged
containers can only access bits of the filesystem which are correctly
labeled. You can relabel them using :z (generic) or :Z (specific to
the container) on the mount option, though it sounds like you want a
"pet-style" container for administering your OS in general. In that
case, I'd recommend toolbox which is already part of FCOS:
https://github.com/containers/toolbox/
It creates a privileged container and should already be bind-mounting
/mnt in, so you should have access to your data there. (You can of
course do the same thing yourself with --privileged.)
On Thu, Aug 5, 2021 at 6:53 AM Philip Rhoades <phil(a)pricom.com.au> wrote:
People,
If I install Fedora as a Podman container on CoreOS so I can use things
like rsync and ranger - how do I give these apps access to the data on
the /dev/sdb partition? I have CoreOS on /dev/sda and many HD backups
on /dev/sdb (mounted at /var/mntb) but I have problems getting access to
this data when I create a Podman container and try and give it access to
/var/mntb using the "-v" switch when creating the container. What is
the appropriate way of getting access to /dev/sdb without having to
build a custom CoreOS?
Thanks,
Phil.
--
Philip Rhoades
PO Box 896
Cowra NSW 2794
Australia
E-mail: phil(a)pricom.com.au
_______________________________________________
CoreOS mailing list -- coreos(a)lists.fedoraproject.org
To unsubscribe send an email to coreos-leave(a)lists.fedoraproject.org
Fedora Code of Conduct:
https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines:
https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives:
https://lists.fedoraproject.org/archives/list/coreos@lists.fedoraproject.org
Do not reply to spam on the list, report it:
https://pagure.io/fedora-infrastructure