Backup /var/lib/docker without the images?

gs flag

I want to make a backup of all my containers and volumes, so the easiest way would be to copy /var/lib/docker to another location.

However this directory also includes all the images, and I don't want to include them since they all can easily be re-downloaded from public sources.

So how can I copy this directory while excluding the images?

in flag
Virtually every copy and backup tool provides an exclude parameter.
Maestro avatar
gs flag
@GeraldSchneider Ofcourse, I just want to know which directory or files to exclude. It's very hard to differentiate between volumes and images because they reside in the same directory (overlay2) and have cryptic names.

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.