On Sun, 2019-09-22 at 11:08 -0500, David Wright wrote:
> On Sun 22 Sep 2019 at 16:29:54 (+0100), André Rodier wrote:
> > Hello,
> > 
> > Is there a way, when using apt to install packages, to delete the
> > package file from /var/cache as soon as it is installed?
> > 
> > I am running a package installation inside docker:stable, and it
> > fails
> > in the middle, with no space left on device.
> 
> I think you need to break up the apt command into several of them,
> with clean in between (if needed: apt might clean automatically;
> IDK as I use apt-get).
> 
> Install the dependencies of dependencies first, then the
> dependencies,
> then the packages *with* those dependencies, ie starting from the
> bottom of the tree of dependencies.
> 
> > Otherwise, is there an option to increase the docker image before
> > installing it?
> 
> Cheers,
> David.
> 
Thanks David et al,

The issue was the number of inodes in my /var/lib/docker partition was
ridiculously small, I had to reformat the partition to increase the
number of inodes, and it is now working.

Th partition is 20G, with the big files option, perhaps it was the
reason of the small number of inodes?

And yes, I was using overlay2.

Thanks again for your help,

André



Reply via email to