Then you would create an image and do the bootstrap, on a local machine where you have sudoBootStrap: dockerFrom: ubuntu:latest%runscriptexec echo "Hello World" "$@"%postapt-get install git
sudo singularity create workflow.imgsudo singularity bootstrap workflow.img Singularity
The other option is just to run/shell directly, something like
singularity run docker://ubuntu:latestsingularity shell docker://ubuntu:latest
--
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+unsubscribe@lbl.gov.
Hi Peter,The docker2singularity conversion isn't (anymore) the best way to do the conversion. I don't see your PR - could you direct me to the Dockerfile (on Docker Hub?) of the image you are trying to convert, and we will go from there? Ideally you would want:- add the image to Docker Hub, making it available on the docker registry- create a bootstrap file, or run/shell the image on demand. A bootstrap build file looks something like this:#SingularityBootStrap: docker
From: pvanheus/qiime:latest
%runscript
PATH=/opt/conda/bin:$PATH
export PATH
source activate qiime1
exec "$@" $*
Then you would create an image and do the bootstrap, on a local machine where you have sudosudo singularity create workflow.imgsudo singularity bootstrap workflow.img SingularityThe other option is just to run/shell directly, something likesingularity run docker://ubuntu:latestsingularity shell docker://ubuntu:latestThere are other things you can do like binding directories, executing commands, that may be more fit for your particular use case. If you can give me specifics about your images (and a github repo where we can work together would be great!), I would be happy to help get this moving along. It's a bit late here (after midnight) but I'll be going to sleep soon and waking up... sometime later today, haha.Best,Vanessa
On Sun, Dec 4, 2016 at 11:16 PM, Peter van Heusden <p...@sanbi.ac.za> wrote:PeterThanks!Is it possible to run singularity as an unprivileged user on such a system?The environment here is CentOS 7.2.1511 with kernel 3.10.0-327.36.3.el7.x86_64.I can convert to Singularity images using docker2singularity (with a few minor changes, see the PR I submitted). And then exported the image using singularity export. After moving the tar file to the CHPC cluster and unpacking it, I cannot run singularity with the error:Hi thereI've got a workflow that relies on a series of Docker containers. I'm working on replacing these Docker containers with Singularity for use on a cluster where priveleged operations are not possible (the Centre for High Performance Computer's lengau cluster in South Africa).
[pheusden@login1 scratch]$ singularity shell $(pwd)/fastqc
ERROR : User namespace not supported, and program not running privileged.
ABORT : Retval = 255
--
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.
--
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.
BootStrap: docker
From: qiime:latest
IncludeCmd: no
Registry: http://$IP:5000
Token: no
To unsubscribe from this group and stop receiving emails from it, send an email to singularity+unsubscribe@lbl.gov.
--
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+unsubscribe@lbl.gov.
--
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+unsubscribe@lbl.gov.
--
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.
BootStrap: dockerFrom: biocontainers/fastx_toolkit:0.0.14--2Registry: quay.io
sudo singularity bootstrap workflow.img SingularityBootstrap initializationChecking bootstrap definitionExecuting Prebootstrap moduleExecuting Bootstrap 'docker' module
From: biocontainers/fastx_toolkit:0.0.14--2Registry: quay.ioCache folder set to /root/.singularity/dockerDownloading layer sha256:2c07bb1526a59386037550d4a4cb589c97a518b5bc07b9a9011b60aaf46278daExtracting /root/.singularity/docker/sha256:2c07bb1526a59386037550d4a4cb589c97a518b5bc07b9a9011b60aaf46278da.tar.gzExtracting /root/.singularity/docker/sha256:a3ed95caeb02ffe68cdd9fd84406680ae93d633cb16422d00e8a7c22955b46d4.tar.gzDownloading layer sha256:10c3bb32200bdb5006b484c59b5f0c71b4dbab611d33fca816cd44f9f5ce9e3cExtracting /root/.singularity/docker/sha256:10c3bb32200bdb5006b484c59b5f0c71b4dbab611d33fca816cd44f9f5ce9e3c.tar.gzDownloading layer sha256:dfda3e01f2b637b7b89adb401f2f763d592fcedd2937240e2eb3286fabce55f0Extracting /root/.singularity/docker/sha256:dfda3e01f2b637b7b89adb401f2f763d592fcedd2937240e2eb3286fabce55f0.tar.gzDownloading layer sha256:d2ba336f2e4458a9223203bf17cc88d77e3006d9cbf4f0b24a1618d0a5b82053Extracting /root/.singularity/docker/sha256:d2ba336f2e4458a9223203bf17cc88d77e3006d9cbf4f0b24a1618d0a5b82053.tar.gzDownloading layer sha256:7ff999a2256f84141f17d07d26539acea8a4d9c149fefbbcc9a8b4d15ea32de7Extracting /root/.singularity/docker/sha256:7ff999a2256f84141f17d07d26539acea8a4d9c149fefbbcc9a8b4d15ea32de7.tar.gzDownloading layer sha256:00cf8b9f3d2a08745635830064530c931d16f549d031013a9b7c6535e7107b88Extracting /root/.singularity/docker/sha256:00cf8b9f3d2a08745635830064530c931d16f549d031013a9b7c6535e7107b88.tar.gzDownloading layer sha256:3aaade50789a6510c60e536f5e75fe8b8fc84801620e575cb0435e2654ffd7f6Extracting /root/.singularity/docker/sha256:3aaade50789a6510c60e536f5e75fe8b8fc84801620e575cb0435e2654ffd7f6.tar.gzDownloading layer sha256:77c6c00e8b61bb628567c060b85690b0b0561bb37d8ad3f3792877bddcfe2500Extracting /root/.singularity/docker/sha256:77c6c00e8b61bb628567c060b85690b0b0561bb37d8ad3f3792877bddcfe2500.tar.gzExecuting Postbootstrap moduleDone.
To unsubscribe from this group and stop receiving emails from it, send an email to singularity+unsubscribe@lbl.gov.
--
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+unsubscribe@lbl.gov.