0

我尝试从位于 dockerhub 上的 docker 镜像构建奇点镜像。

singularity build pcgr.simg docker://sigven/pcgr:0.5.3

然后当我尝试执行它时:

singularity exec pcgr.simg ls

它给了我这个错误:

ERROR  : Failed to mount image in (read only): Invalid argument
ABORT  : Retval = 255

奇点版本:2.3.1-dist

知道如何解决这个问题吗?

谢谢

PS:这是在构建过程中打印的行

/usr/local/libexec/singularity/cli/build.exec: ligne 62: atexit : commande introuvable
Docker image path: index.docker.io/sigven/pcgr:0.5.3
Cache folder set to /home/user/.singularity/docker
Importing: base Singularity environment
Importing: /home/user/.singularity/docker/sha256:ae79f251470513c2a0ec750117a81f2d58a50727901ca416efecf297b8a03913.tar.gz
Importing: /home/user/.singularity/docker/sha256:5ad56d5fc14905886c560200ab69f905b5c5287eaf12f8f761a7ab54f7a61c1b.tar.gz
Importing: /home/user/.singularity/docker/sha256:170e558760e8b2e484a022b7d7272cf284fc4e1936ba7a0a671fc586440ad272.tar.gz
Importing: /home/user/.singularity/docker/sha256:395460e233f5bdcd910d618a3b615e0d881e09ad27d58f3065eef53ecae6a808.tar.gz
Importing: /home/user/.singularity/docker/sha256:6f01dc62e444044e3ce494269837ef0aedb80fef69c679416137f17812d2eb9c.tar.gz
Importing: /home/user/.singularity/docker/sha256:a409104b96312ca9097e28dde2973b6be718b1fe6eb88c7256abc676adeef5fc.tar.gz
Importing: /home/user/.singularity/docker/sha256:0c502e44f6cf92ed12bccaa5250fe50b6002f8c2802ccaeb10897095965ebc9a.tar.gz
Importing: /home/user/.singularity/docker/sha256:2d356fa216d078e32e78c4279b81407f40c39160c8b6479ca248659f39f4f38e.tar.gz
Importing: /home/user/.singularity/docker/sha256:4a160e3926c74bcfadac2c55d8da45847b3f45d110c6f56efc3355322bbbe270.tar.gz
Importing: /home/user/.singularity/docker/sha256:dda5a77ec5fea4fed769435dce43d7cbecb820229bcb977fe43f89d539a17efe.tar.gz
Importing: /home/user/.singularity/docker/sha256:edb264ed4f1cb0ff53211e09c68f904bedfa0f2ffa9556f0a41db9ef29ebe12f.tar.gz
Importing: /home/user/.singularity/docker/sha256:ceeedca91fedbc58ab16627f6af0c3b8d150d8242a5a6956c6bc8969e8384806.tar.gz
Importing: /home/user/.singularity/docker/sha256:0be25d4ff93e0b0b51d64ad5e9dec58f4dc4993cd474a1a11960f2ca8c08736d.tar.gz
Importing: /home/user/.singularity/docker/sha256:cba09c9b27f7c7e5bccd8e10202466714b77eacb7b503b92e5d9ee1c4ee0a903.tar.gz
Importing: /home/user/.singularity/metadata/sha256:99759e9893f4fa0e30b37531d92efbcbcd79e85733c0c8cee3cc6ac1495164ed.tar.gz
/usr/local/libexec/singularity/cli/build.exec: ligne 325: nonroot_build_warning : commande introuvable
Building Singularity image...

Singularity container built: pcgr.simg
4

2 回答 2

0

我仍在尝试了解奇异性的工作方式(随着 Docker 经验而来,奇异性有点令人困惑),但我发现通过使用sudo.

不过,仍在阅读其含义是……

于 2018-05-25T08:45:56.227 回答
0

默认情况下,singuarity 挂载 /dev/tmp 和 $ HOME,但是您正在构建不可变映像 ( simg ) 而没有提升权限,这意味着您在挂载 OS 目录时没有 root 权限,您有几个选项,修改/etc/singularity/singularity.conf配置您不要挂载这些目录或使用 sudo 创建映像。

sudo singularity build pcgr.simg docker: // sigven / pcgr: 0.5.3
于 2018-09-10T22:12:30.707 回答