Sunday, November 6, 2022

[FIXED] Where docker volumes are located?

Issue

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?


Solution

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 inspecting anything.



Answered By - David Maze
Answer Checked By - Timothy Miller (PHPFixing Admin)

No comments:

Post a Comment

Note: Only a member of this blog may post a comment.