Hi Paul,
have you tried to bind /var/abc explicitly in the container?
I.e.,
--bind /var/abc
But mounting your host's /var might be not really desirable as you are
mixing your container's and hots's /var/lib etc.
Probably a sandbox-container or --writable would be safer.
Cheers,
Thomas
On 2018-11-06 20:44, PaulJ wrote:
> Hi All:
>
> I created my own singularity "container" with the build file:
>
> host> cat test3.script
>
> /BootStrap: yum/
> /OSVersion: 6/
> /MirrorURL: http;//localhost/centos/%{OSVERSION}/os/$basearch//
> /Include: yum/
> /
> /
> After building the image (sudo singularity build test3.sif
> test3.script), I can run it with:
> host> sudo singularity shell test3.sif
>
> in the image, if I attempt to write to /var (and I am the root user
> because I called singularity with sudo), it returns an error message:
>
>> id
> uid=0(root) gid=0(root) groups=0(root)
>> touch /var/abc
> touch: cannot touch '/var/abc': Read-only file system
>
> I discovered this, since I was trying to perform yum commands in the
> image, and they were hanging (because it could not write to /var/lib/rpm)
>
> thanks,
> Paul
>
> --
> You received this message because you are subscribed to the Google
> Groups "singularity" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to
singularity...@lbl.gov
> <mailto:
singularity...@lbl.gov>.