Everything works as expected when I specify a specific directory for a volume, aka -v specific_directory:/workdir
but if I just do -v /workdir
- I do not see the host directory.
Commands:
docker run -it --name container-test -h CONTAINER -v /data debian /bin/bash
docker inspect container-test
results:
"Mounts": [
{
"Name": "bc907b86e5da9a775107d007f6e60f58dfb26f09c6332a3d00aff4920540e80d",
"Source": "/var/lib/docker/volumes/bc907b86e5da9a775107d007f6e60f58dfb26f09c6332a3d00aff4920540e80d/_data",
"Destination": "/data",
"Driver": "local",
"Mode": "",
"RW": true,
"Propagation": ""
}
],
Now when I try to go to the source, /va/lib/docker
does not exist.
How can I access that source directory from the host?