Skip to content
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

Image is not writable #1

Open
hugues-talbot opened this issue Jan 2, 2018 · 5 comments
Open

Image is not writable #1

hugues-talbot opened this issue Jan 2, 2018 · 5 comments

Comments

@hugues-talbot
Copy link

Running the jupyter image in writable mode seems to be forbidden:

vagrant@vagrant:~/singularity-web/nginx-jupyter$ sudo singularity run --writable jupyter.img
ERROR : Unable to open squashfs image in read-write mode: Read-only file system
ABORT : Retval = 255

@vsoch
Copy link
Owner

vsoch commented Jan 2, 2018

hey @hugues-talbot ! This image tutorial was done way before we even had squashfs images :) What you would want to do is to build with writable, like:

sudo singularity build --writable jupyter.simg Singularity

Let me know if that works for you and I can update the docs.

@vsoch
Copy link
Owner

vsoch commented Jan 2, 2018

Here is what I would try:
https://github.com/vsoch/singularity-web/pull/2/files

@hugues-talbot
Copy link
Author

hugues-talbot commented Jan 2, 2018 via email

@vsoch
Copy link
Owner

vsoch commented Jan 2, 2018

hey @hugues-talbot ! I'm not sure about the /run/user vs /run/user/1000 - this might be something that you want to post on the singularity repository to get support.

For running as root, at least in this PR jupyter/notebook#1115 it looks like they added a command argument to allow for it. Try adding that.

If you want an actual server, then I would try defining a %startscript in the recipe, and then starting jupyter as a server there. Then you would do something like:

singularity instance.start container.simg jupyter
singularity instance.list

Give those things a try, let me know if you have any luck! Likely we should update these scripts to suggest using the instance from the getgo, since it's probably more appropriate.

@hugues-talbot
Copy link
Author

hugues-talbot commented Jan 3, 2018 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants