构建奇异容器时,流浪机的记忆不足

发布于 2025-02-03 04:02:35 字数 1430 浏览 4 评论 0原文

我正在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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

鲜血染红嫁衣 2025-02-10 04:02:35

我通过指定在有空间的地方保存.sif容器来工作:

sudo singularity build --tmpdir '/dev' /dev/MY_CONTAINER.sif Singularity.recipe

I got it to work by specifying saving the .sif container where there was space:

sudo singularity build --tmpdir '/dev' /dev/MY_CONTAINER.sif Singularity.recipe
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文