I've got two internal SSDs, of which one is smaller (128) and one is bigger (1TB). How can I tell podman (or docker) to use another folder? Currently, it sits on the smaller drive which has less and less storage.

  • calm.like.a.bomb@lemmy.dbzer0.com
    ·
    edit-2
    6 months ago

    For docker, you have to create /etc/docker/daemon.json and set:

    {
      "data-root": "/docker"
    }
    

    You can move your /var/lib/docker while the daemon is stopped. I had no issues when I did the move.

    I don't know how to change this for podman.

    LE: https://ahelpme.com/software/podman/change-the-location-of-container-storage-in-podman-with-selinux-enabled/