beginner question. I usually mount a local folder with
docker run -v /path/to/local/fold:/path/in/container -t testimg
However it looks like the folders in the /path/to/local/fold (something like /path/to/local/fold/dir) are not there from the container (/path/in/container/fold/dir). So question is: are sub-directories mounted automatically or I need to do something else? Could not find an answer.
I’m seeing the same problem, but not because I incorrectly specified the host folder. I specify the option -v /opt:/optX. When I navigate to /optX in the container, I don’t see anything inside it, yet the host’s /opt has many subdirs. ???