No space error: when pull localstack image

I have something like this:

localstack:
    image: localstack/localstack
    environment:
      - SERVICES=s3,iam
      - DEBUG=1
    ports:
      - "4566:4566"
    volumes:
      - /var/run/docker.sock:/var/run/docker.sock
    networks:
      - backend-network
    # deploy:
    #   resources:
    #     limits:
    #       cpus: '2'
    #       memory: '4G'

no each time i run my docker-compose file, i get the error:
ERROR: failed to register layer: write /usr/local/go/pkg/linux_amd64/cmd/vendor/golang.org/x/tools/go/analysis/internal/facts.a: no space left on device

but i check just how much space my pc has:

free -m
               total        used        free      shared  buff/cache   available
Mem:            7935         630        4855           4        2759        7304
Swap:              0           0           0

this means i have enough space.
So i don’t understand what is going on.

Hi @sinke237, please update your docker-compose.yml to follow the default version docker-compose.yml at localstack/localstack (github.com).

As this is a docker question, I would suggest you to follow the steps from Get Docker | Docker Docs depends on your OS.