singularity inside docker under macOS

103 views
Skip to first unread message

Michał T. Lorenc

unread,
Sep 26, 2018, 2:37:55 AM9/26/18
to singularity
Hi
I am using a Mac and I found docker container which contains Singularity. Unfortunately, I am not able to build a Singularity container with it.

$ docker run --rm -it --privileged -v $(pwd):/work deephorizons/singularity sh
Unable to find image 'deephorizons/singularity:latest' locally
latest: Pulling from deephorizons/singularity
124c757242f8: Pull complete
9d866f8bde2a: Pull complete
fa3f2f277e67: Pull complete
398d32b153e8: Pull complete
afde35469481: Pull complete
7584e4eaacba: Pull complete
5936462213ac: Pull complete
Digest: sha256:7c61f7fc2e86934c1c500965d38b8915242979167f01d7b05d4383b3154923ad
Status: Downloaded newer image for deephorizons/singularity:latest
# singularity create 3d-dna.img
WARNING: The create command is deprecated, and will be removed
WARNING: To create, use the image.create command.
WARNING: Use the build command to create and build an image in a single step.
Creating empty 768MiB image file: 3d-dna.img
Formatting image with ext3 file system
Image is done: 3d-dna.img
# singularity bootstrap 3d-dna.img Singulairty
WARNING: The bootstrap command is deprecated and will be removed in a future release.
WARNING: Use the build command like so:
WARNING: singularity build 3d-dna.img Singulairty
Building into existing container: 3d-dna.img
ERROR: Unknown container build Singularity recipe format: Singulairty
ABORT: Aborting with RETVAL=255
Cleaning up...
#    



What did I miss?

Thank you in advance,

Michal


Ryo Nakamaru

unread,
Sep 26, 2018, 3:10:20 AM9/26/18
to singu...@lbl.gov
Hi Michal,

According to your Dockerfile (
https://hub.docker.com/r/deephorizons/singularity/~/dockerfile/ ), I
think you have to do `cd /work` first or run a container with `-w
/work` option. You're might in a wrong working directory.

Nak
> --
> 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.

Michał T. Lorenc

unread,
Sep 26, 2018, 4:06:46 AM9/26/18
to singularity
Hi Nak,
Now, I used cd /work but I still got the same problem.

What did I miss?

Thank you in advance,

Best wishes,

Michal

Jafaruddin Lie

unread,
Sep 26, 2018, 5:42:54 AM9/26/18
to singu...@lbl.gov
"# singularity bootstrap 3d-dna.img Singulairty
WARNING: The bootstrap command is deprecated and will be removed in a future release.
WARNING: Use the build command like so:
WARNING: singularity build 3d-dna.img Singulairty
Building into existing container: 3d-dna.img
ERROR: Unknown container build Singularity recipe format: Singulairty
ABORT: Aborting with RETVAL=255
Cleaning up...
 " 

Is that a typo in your bootstrap command? You're trying to bootstrap a file called `Singulairty` instead of Singularity?

Michał T. Lorenc

unread,
Sep 26, 2018, 5:55:16 AM9/26/18
to singu...@lbl.gov
Thank you. Yes, it was a typo now it works.

Michal

You received this message because you are subscribed to a topic in the Google Groups "singularity" group.
To unsubscribe from this topic, visit https://groups.google.com/a/lbl.gov/d/topic/singularity/AxEMoxdtvkc/unsubscribe.
To unsubscribe from this group and all its topics, send an email to singularity...@lbl.gov.
Reply all
Reply to author
Forward
0 new messages