我尝试从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
知道如何解决这个问题吗?
谢谢
P.S。 :这是构建期间打印的行
/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
答案 0 :(得分:0)
我仍然试图绕着奇点的方式工作(使用Docker经验,奇点有点令人困惑)但我发现通过sudo
运行命令可以绕过类似的错误。
仍在阅读其中的含义是......
答案 1 :(得分:0)
默认情况下,singuarity挂载/ dev / tmp和$ HOME,但是您正在构建不具有提升特权的不可变映像( simg ),这意味着在挂载OS目录时您没有root权限,您有几个选项,请修改/etc/singularity/singularity.conf
中的配置,以免挂载这些目录或使用sudo创建映像。
sudo singularity build pcgr.simg docker: // sigven / pcgr: 0.5.3