Follow

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Contact

unable to find docker mount point on local laptop

I have started a docker image using command

docker run -p 5433:5433 -p 5444:5444 \
           --mount type=volume,source=vertica-data,target=/data \
           --name vertica_ce \
           vertica/vertica-ce

I believe source=vertica-data is the local mount point for docker images’s /data directory. But I can’t fid this directory on my windows laptop. Where does docker create vertica-data directory?

MEDevel.com: Open-source for Healthcare and Education

Collecting and validating open-source software for healthcare, education, enterprise, development, medical imaging, medical records, and digital pathology.

Visit Medevel

>Solution :

This command creates a named volume. You can list these volumes using docker volume ls. docker volume inspect vertica-data will show you the path where the data is actually stored.

Apart from named volumes, you may also use bind mounts, which means mounting a directory on the host inside of the container. This can be done using --mount type=bind,source=/path/on/host,target=/data

For more information, please refer to the documentation how to use volumes

Add a comment

Leave a Reply

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use

Discover more from Dev solutions

Subscribe now to keep reading and get access to the full archive.

Continue reading