Access data, files and directories of your Docker volumes on your host

donderdag 4 augustus 2022 - 66 woorden, 1 min read

Are you looking where all the data with files are being stored on your machine outside the containers when using Docker volumes?

Have a look at this directory where you will find all the volumes:

sudo ls -la /var/lib/docker/volumes

I was looking for the data directory of my Nextcloud instance which Iā€™m running with a docker-compose file.
I found all the data in this directory:

/var/lib/docker/volumes/nextcloud_nextcloud/_data/data/sebastix/files

Thanks to this link finding the answer I was looking for. Please note that you need root permissions to access these files.


Blijf in verbinding

In mijn nieuwsbrief deel ik regelmatig feitjes en nieuwe toepassingen uit de digitale wereld. Hier heb jij vast ook iets aan in de praktijk. Ben je benieuwd?

Sebastian Hagens | creative webdeveloper & tech consultant