Skip to content

Instantly share code, notes, and snippets.

@chrisgorgo
Last active September 11, 2016 22:51
Show Gist options
  • Save chrisgorgo/376a683381d762f2c8b15385947b9c64 to your computer and use it in GitHub Desktop.
Save chrisgorgo/376a683381d762f2c8b15385947b9c64 to your computer and use it in GitHub Desktop.
PS C:\Users\filo> docker run -v /var/run/docker.sock:/var/run/docker.sock -v /c/Users/filo/singularity:/output --privileged -t --rm filo/docker2singularity opensuse:13.1
Size: 385 MB for the singularity container
(1/9) Creating an empty image...
Creating a sparse image with a maximum size of 385MiB...
Using given image size of 385
Formatting image (/sbin/mkfs.ext3)
Done. Image can be found at: /tmp/opensuse_13.1-2015-04-30-580dd60a77f7.img
(2/9) Importing filesystem...
(3/9) Bootstrapping...
(4/9) Adding run script...
(5/9) Setting ENV variables...
Singularity: sexec (U=0,P=141)> Command=exec, Container=/tmp/opensuse_13.1-2015-04-30-580dd60a77f7.img, CWD=/, Arg1=/bin/sh
(6/9) Fixing permissions...
Singularity: sexec (U=0,P=147)> Command=exec, Container=/tmp/opensuse_13.1-2015-04-30-580dd60a77f7.img, CWD=/, Arg1=/bin/sh
Singularity: sexec (U=0,P=174)> Command=exec, Container=/tmp/opensuse_13.1-2015-04-30-580dd60a77f7.img, CWD=/, Arg1=/bin/sh
(7/9) Adding mount points...
Singularity: sexec (U=0,P=4300)> Command=exec, Container=/tmp/opensuse_13.1-2015-04-30-580dd60a77f7.img, CWD=/, Arg1=/bin/sh
(8/9) Stopping and removing the container...
580dd60a77f7
580dd60a77f7
(9/9) Moving the image to the output folder...
403,701,792 100% 90.92MB/s 0:00:04 (xfr#1, to-chk=0/1)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment