Need to know where docker volumes are located when using the docker machine on macOS. The installation is using boot2docker, so the VM works behind.
Example:
docker volume create test-data
docker inspect shows a path, but where can I find the specific (physical) location?
ls -l /var/lib/docker/volumes/
It’s inside the virtual machine and isn’t directly accessible from the host.
Debug-level commands like docker volume inspect
will give you a path, but they really are only for emergency debugging and not for routine use. If you have a way to get a shell in the VM you can see that path, but you really shouldn’t be directly accessing files there, and you shouldn’t be routinely docker inspect
ing anything.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With