Need To Solve: ENOSPC: no space left on device

I hope someone can help me here… Everything says I’ve got space to burn. But I can’t extract a tarball?

anon23:rabbit ajoslin$ docker-compose build rabbit
[...]
 > [8/8] RUN yarn:
#0 0.797 yarn install v1.22.19
#0 1.069 [1/5] Validating package.json...
#0 1.080 [2/5] Resolving packages...
#0 4.729 [3/5] Fetching packages...

#0 102.8 error https://registry.yarnpkg.com/@mui/material/-/material-5.10.4.tgz: ***Extracting tar content of undefined failed, the file appears to be corrupt: "ENOSPC: no space left on device,*** 

Extracting tar content of undefined failed, the file appears to be corrupt: "ENOSPC: no space left on device,

By all estimations I have used a fraction of my Docker Disk Image

I don’t want to keep running docker system purge only to be able to fill up on the third image

anon23:rabbit ajoslin$ docker system df
TYPE            TOTAL     ACTIVE    SIZE      RECLAIMABLE
Images          66        3         37.35GB   31.5GB (84%)
Containers      3         0         112.7kB   112.7kB (100%)
Local Volumes   42        0         1.203GB   1.203GB (100%)
Build Cache     184       0         2.643GB   2.643GB

docker-compose.yml

version: "3.9"
services:
  web:
    build:
      context: .
      dockerfile: ./web/Dockerfile
    ports:
      - "8910:8910"
    environment:
      REDWOOD_API_URL: 'http://0.0.0.0:8911'
  api:
    build:
      context: .
      dockerfile: ./api/Dockerfile
    ports:
      - "8911:8911"
    environment:
      DATABASE_URL: 'file:./dev.db'
  rabbit:
    build:
      context: .
      dockerfile: ./rabbit/Dockerfile
    ports:
      - "3333:3333"

Dockerfile

FROM node:lts-alpine

RUN mkdir -p /home/node/app/node_modules

WORKDIR /home/node/app

COPY package.json yarn.* ./

RUN apk add --no-cache git

COPY . /home/node/app/

RUN chown -R node:node /home/node

RUN yarn

USER node

EXPOSE 3333

ENTRYPOINT ["node","ace","serve","--watch"]

How large is that tar file?

When you download a tar file and extract it, you will store twice of the size of the original file at least temporarily and the operating system in the virtual machine will also need some space.

Are you using Docker Desktop for Linux or for Mac?

And please, share error messages and commands as text in code blocks. When you share a screenshot, we can’t copy parts of the error message to help you search for it and it is harder to read especially when your terminal has a background.

Thanks for helping!

The 1st code snippet is the error in the picture

I used the picture to show what Docker Desktop Mac is saying I have used (zero out of 59GB ?!?)

The 3rd snippet is the what the Docker CLI says I have used: about 37.35GB out of 59.6GB ?

Then there’s my docker-compose file and the Dockerfile I am trying to build

The package in question: material-5.10.4.tgz = 1.4MB (compressed) 17.9MB uncompressed

I don’t know how I could miss that…

That is always zero. Before your screenshot, I didn’t even know it was there, then I checked it and it was zero for me too.

My suggestion: Try to run the commands in an interactive shell in a container instead of running Docker build. Then you can see the filesystem and find out why and where you don’t have space.

When I went back to the picture I saw that I could raise the amount of space available – that indicator is a slider

:rofl: I don’t know how I could have missed that…

So I doubled the space I have to fill – easy answer for now that gets me over the hump.

When I get more time (yeah, right) I’ll work with layers

Cheers!
Al;