-
-
Notifications
You must be signed in to change notification settings - Fork 36
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
Cannot (easily) build huge images. #113
Comments
It’s generated via /tmp in the image you have total control of binding that somewhere on your host, as you do with the output folder. I’m not sure what you are asking or suggesting but if you test a new variable in the script that you think would be useful happy to discuss. And generally I’d recommend these days pulling Docker images directly with Singularity - this script was made before that was supported. |
I'll see if I can build the image on the machine I actually want to run on. |
Sure thing! And please try |
Looks like my sysadmins have not included mksquashfs for us.
I know I can run singularity images on the cluster, but I have trouble building them there. A reason I had wanted to build them from within a Docker container is to make it easier for future TAs (Teaching Assistants) to deploy newer containers without forcing them to do much installation on their local machines. (Nor to trust campus IT to give us what we need.) |
Could I build a Singularity image from inside a Singularity image? |
Ug, I'm sorry about that! I would reach out to them and report the error and have a conversation about Singularity. This is a conversation people were having years ago (2016 / 2017) and I'm sorry that your cluster doesn't seem to have real support for it. If they say that it's installed, then perhaps ask them how you can pull an image from Docker Hub without that? Perhaps they expect you to pull locally, and then scp onto the cluster to use? It's annoying but it could possibly work.
You could try it, but at least when I tried a few years back, it won't work because of the permissions required. If the sysadmins aren't supportive of Singularity then you can ask them about Podman, which is another rootless container technology (more like docker) that is being better embraced at national labs. If they are dismissive to both then you probably need to escalate to someone in management there or a higher up in a department because not being able to run HPC friendly containers on a cluster in 2022 is really not acceptable. |
Well, it looks like one of the older singularity installations on the cluster can build, so I've got my issues sorted. |
My Docker images are huge, and I keep getting out of space errors when I try to build with the basic
docker2singularity
commandline.I know I can probably (on my own machine anyway) allocate more space for my Docker VM so it would have a larger
/tmp
slice, but that's not always possible.This has lead me to write a bash script to setup various mountpoints for docker2singularity.
It would be nice if some of these things could be better documented, it would also be nice if the
docker2singularity.sh
script had more control over where its temporary directories go.Here is the most important part of what I have so far, but it still doesn't work.
The text was updated successfully, but these errors were encountered: