Where are the volumes for Docker Desktop kept? Ubuntu

Where are the volumes for Docker kept in Docker Desktop?

I created a volume in Docker Desktop: “linkding_data”

I did the following in CLI:

$ docker volume inspect --format '{{ .Mountpoint }}' linkding_data
$ /var/lib/docker/volumes/linkding_data/_data

However, when I navigate to “/var/lib/” in File Browser, there is NO docker directory in lib. And it doesn’t appear to be a hidden directory, either.

So, where are the volumes kept?

If you really use Docker Desktop (and not just docker-ce on Linux Desktop) then the volume are inside the private utility vm that runs the docker engine.

If you feel you need to access the files from the host, then you probably want to do something that is not supposed to be done. I use docker since roughly 9 years, and it was never necessary to access anything from /var/lib/docker.

I am surprised that the forum search seem to not yield any good results for you, which is odd, as this sort of questions has been asked and answered a lot.

Next time I’ll do a better search, I guess.

@meyay is so right, this was the exact reason why I wrote about this in my tutorial

I learned a lot while I was witing this tutorial. Why? Because as meyay, I never cared about where how I could directly access these folders. I honestly believe when people ask these questions, they ask the wrong questions, because they don’t know what volumes are for.


Thank you, I’ll give the webpage a read.

In the Docker Desktop setup, volumes are stored in a hidden directory. It’s like finding hidden cars in the (moderated link) game! The volumes are usually managed by Docker, and accessing them directly might not be straightforward. Consider it Docker’s way of parking volumes in a virtual garage.

1 Like

Thank you! That’s all I wanted to know, really. I’m no longer using Docker Desktop and I’m using Ubuntu rather than Windows as well. It’s much more straightforward just using docker-ce on Ubuntu.