skip to Main Content

When running podman build I see this error:

error creating build container:
storing blob to file /var/tmp/storageXXX: no space left on device

I have another directory where I have a lot of space. How can I switch podman build to use the other directory?

2

Answers


  1. Chosen as BEST ANSWER

    I managed to do this by setting the TMPDIR directory to the intended target like this:

    TMPDIR=/my/target/dir podman build --file Dockerfile
    

  2. May podman answers will be similar to docker

    change docker images storage location

    sudo sytemctl stop docker
    sudo rsync -av /var/lib/docker /mnt/hd/
    sudo rm -rf /var/lib/docker
    sudo ln -s /mnt/hd/docker /var/lib/docker
    sudo systemctl start docker
    
    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search