DEV Community

Cover image for Fix "No space left on device" from "podman compose build" with "podman system prune"
Andrew Petro
Andrew Petro

Posted on

Fix "No space left on device" from "podman compose build" with "podman system prune"

What happened:

% podman compose build

...

/some/path/and/library/something.so:  write error (disk full?).  Continue? (y/n/^C) 
warning:  /some/path/and/library/something.so is probably truncated
symlink error: No space left on device

...

Error: executing /opt/homebrew/bin/podman-compose build: exit status 50
% 
Enter fullscreen mode Exit fullscreen mode

What I did to fix it

podman system prune

% podman system prune 
WARNING! This command removes:
    - all stopped containers
    - all networks not used by at least one container
    - all dangling images
    - all dangling build cache

Are you sure you want to continue? [y/N] yes

...

Total reclaimed space: 233.3GB
Enter fullscreen mode Exit fullscreen mode

After that, podman compose build succeeded.

Cover image: Photo by Markus Spiske on Unsplash.

Top comments (0)