I have a need to check if a directory in my running container is mounted from the host or not.
Example: using the docker run .... -v /host-data:/data ....
command.
If not mounted, I want to warn the user that data on this directory will be lost when the container is terminated...