Singularity images based on Alpine Linux.
2.4K
Dockerfile links:・latest (versions/3.2/Dockerfile)
・3.2 (versions/3.2/Dockerfile)
・2.6 (versions/2.6/Dockerfile)
$ docker run --rm pottava/singularity:3.2 --version
$ docker run --rm -it --privileged -v $(pwd):/work pottava/singularity:3.2 sh
Install docker and create a following shell script:
$ sudo sh -c 'cat << EOF > /usr/local/bin/singularity
#!/bin/sh
docker run --rm -it --privileged -e UID=\$(id -u) -e GID=\$(id -g) \\
-v /var/run/docker.sock:/var/run/docker.sock \\
-v \$(pwd):/home/singularity -v /tmp:/tmp -w /home/singularity \\
pottava/singularity:3.2 "\$@"
EOF'
$ sudo chmod +x /usr/local/bin/singularity
$ singularity pull --name hello.simg shub://vsoch/hello-world
$ sudo singularity run hello.simg
$ sudo singularity exec hello.simg ls
$ sudo singularity shell hello.simg
$ singularity pull --name hello.simg shub://vsoch/hello-world
$ singularity run hello.simg
$ singularity exec hello.simg ls
$ singularity shell hello.simg
$ docker run --rm -it --privileged -v $(pwd):/tmp \
--entrypoint sh pottava/singularity:2.3 -c \
"singularity create --size 100 alpine.simg && cp /work/alpine.simg /tmp/"
$ singularity import alpine.simg docker://alpine:3.7
$ singularity exec alpine.simg cat /etc/os-release
$ singularity shell alpine.simg
Content type
Image
Digest
Size
61.4 MB
Last updated
over 7 years ago
docker pull pottava/singularity