-
Notifications
You must be signed in to change notification settings - Fork 425
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Can't run image from dockerhub related to read-only image despite --writable
flag
#4546
Comments
Apologies - the CLI help string for If you do not need the changes in the container to be persistent (which they cannot be when running directly from
There is more documentation around persisting changes, via persistent overlays, here: https://sylabs.io/guides/3.4/user-guide/persistent_overlays.html |
I was thinking that it was something like that, just something almost documented. I'll try that and see what it does. |
See also: https://github.com/sylabs/singularity/issues/3220 - this definitely needs some doc attention, so I'll open an issue here: https://github.com/sylabs/singularity-userdocs/issues/248 |
Still not working:
|
Are you running the I believe there may have been some tweaks to CWD handling in container startup in releases since 3.2 - |
I don't control the version used on the deployed machines, so I'm sticking with 3.2. I'll try running this in |
Running it logged into the root user user Doing the same from the dockerhub image gives the following:
|
If you're using If you look at the examples use case, we have a command in the definition file that does:
So, we're explicitly opening up some directory permissions, and also bind mounting host directories into locations where the process in the image will write to. These Note: I think that if you have an old |
I was running everything as the root user directly, so it should have permissions on everything except for the I'd be nice to have a way for this use case to run unprivileged. I'm not sure what that would involve, or if it is even feasible. |
It would be a couple step process ... but as a normal user you can try:
At this point, the user should own everything in the
The other was is to build a SIF file, so your definition you'll build from would start with:
In the |
I'm running into issues with phantom instances which cause new instances to fail or files not be removed. May be a new ticket?
|
@josh-marshall-jax - if you are still having issues with phantom instances on the latest version of Singularity (3.5.2) please do open a new ticket. There were fixes to handling of instance files through the 3.x versions of Singularity. Thanks. |
Version of Singularity:
Expected behavior
Build and run an image from Dockerhub similarly to docker
Actual behavior
Steps to reproduce this behavior
singularity run --writable -e -C docker://rabbitmq:3
What OS/distro are you running
How did you install Singularity
yum install singularity
The text was updated successfully, but these errors were encountered: