You don't have enough free space in /var/cache/apt/archives/

426 views
Skip to first unread message

Gerhard Konnerth

unread,
Nov 16, 2017, 5:44:12 AM11/16/17
to singularity
Hello.

I created a custom singularity image using sudo singularity build -2 someName.img someFile
Then I tried logging into the image as root and installing further software for testing, but I received this error:

You don't have enough free space in /var/cache/apt/archives/

In the docs for version 2.4 (http://singularity.lbl.gov/docs-build-container) there is no information on how to define the size of an image on build. How do I create an image which is large enough (e.g. 4 GB) so that I can install plenty of additional software for development?

Thank you.

Jeff Kriske

unread,
Nov 16, 2017, 11:59:02 AM11/16/17
to singularity
Use a sandbox
sudo singularity build -s someName someFile

This will create a directory named someName using the someFile definition file. The capacity will be as large as the free space you have available.

You can later make a read only squashfs image out of it.

sudo singularity build anotherName someName

Although, personally, I just use the sandbox for development/prototyping and code everything into a definition file later.

Gerhard Konnerth

unread,
Nov 16, 2017, 4:35:32 PM11/16/17
to singularity
Simple solution. Thank you.
Reply all
Reply to author
Forward
0 new messages