18
submitted 7 months ago* (last edited 7 months ago) by GravitySpoiled@lemmy.ml to c/linux@lemmy.ml

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.

you are viewing a single comment's thread
view the rest of the comments
[-] clmbmb@lemmy.dbzer0.com 6 points 7 months ago* (last edited 7 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/

[-] GravitySpoiled@lemmy.ml 1 points 7 months ago

Thx, I'll check it out

this post was submitted on 29 Mar 2024
18 points (90.9% liked)

Linux

47889 readers
2101 users here now

From Wikipedia, the free encyclopedia

Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).

Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word "Linux" in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.

Rules

Related Communities

Community icon by Alpár-Etele Méder, licensed under CC BY 3.0

founded 5 years ago
MODERATORS