构建奇异容器时,流浪机的记忆不足
我正在Mac上运行Vagrant,以创建一个奇异的容器,但用完了内存。我正在运行:
sudo singularity build MY_CONTAINER.sif Singularity.recipe
我会遇到此错误:
INFO: Creating SIF file...
FATAL: While performing build: while creating squashfs: create command failed: exit status 1:
Write failed because No space left on device
FATAL ERROR:Failed to write to output filesystem
但是,容器不应超过10-20G -  我给了流浪机的200克超过200克。
vagrant@vagrant:~$ free -h
total used free shared buff/cache available
Mem: 222G 282M 220G 552K 878M 220G
Swap: 979M 0B 979M
vagrant@vagrant:~$ df -h
Filesystem Size Used Avail Use% Mounted on
udev 111G 0 111G 0% /dev
tmpfs 23G 552K 23G 1% /run
/dev/mapper/vagrant--vg-root 19G 2.7G 15G 16% /
tmpfs 112G 0 112G 0% /dev/shm
tmpfs 5.0M 0 5.0M 0% /run/lock
tmpfs 112G 0 112G 0% /sys/fs/cgroup
vagrant 932G 749G 184G 81% /vagrant
tmpfs 23G 0 23G 0% /run/user/900
vagrant@vagrant:~$ pwd
/home/vagrant
我也尝试了:
sudo singularity build --tmpdir '/dev' MY_CONTAINER.sif Singularity.recipe
I'm running vagrant on a Mac to create a singularity container – but running out of memory. I'm running:
sudo singularity build MY_CONTAINER.sif Singularity.recipe
I get this error:
INFO: Creating SIF file...
FATAL: While performing build: while creating squashfs: create command failed: exit status 1:
Write failed because No space left on device
FATAL ERROR:Failed to write to output filesystem
But, the container should not be more than 10-20G – and I have given the vagrant machine more than 200G.
vagrant@vagrant:~$ free -h
total used free shared buff/cache available
Mem: 222G 282M 220G 552K 878M 220G
Swap: 979M 0B 979M
vagrant@vagrant:~$ df -h
Filesystem Size Used Avail Use% Mounted on
udev 111G 0 111G 0% /dev
tmpfs 23G 552K 23G 1% /run
/dev/mapper/vagrant--vg-root 19G 2.7G 15G 16% /
tmpfs 112G 0 112G 0% /dev/shm
tmpfs 5.0M 0 5.0M 0% /run/lock
tmpfs 112G 0 112G 0% /sys/fs/cgroup
vagrant 932G 749G 184G 81% /vagrant
tmpfs 23G 0 23G 0% /run/user/900
vagrant@vagrant:~$ pwd
/home/vagrant
I have also tried:
sudo singularity build --tmpdir '/dev' MY_CONTAINER.sif Singularity.recipe
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我通过指定在有空间的地方保存.sif容器来工作:
I got it to work by specifying saving the .sif container where there was space: