Score:0

Avoid Docker to write into /var/tmp

cn flag

How can I tell docker to write data elsewhere of /var/tmp ? Like specifying another path, like /opt for example.

Because I often running out of disk usage on /var file system.

The challenge is that I don't to resize /var every time I need to load or save images from the daemon.

Thanks

Score:0
es flag

According to this Docker Offical Post, all you have to do is change the location in /etc/docker/daemon.json like this:

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

Have in mind that if you use tools that connect to a Docker environment, like VSCode, Portainer and many others, they might not be able to see/manage your images if you change the default value.

I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.