I have a web application running in a Docker container. This application needs to access some files on our corporate file server (Windows Server with an Active Directory domain controller). The files I'm trying to access are image files created for our clients and the web application displays them as part of the client's portfolio.
On my development machine I have the appropriate folders mounted via entries in
mount error(13): Permission denied
Yes, Docker is preventing you from mounting a remote volume inside the container as a security measure. If you trust your images and the people who run them, then you can use the
--privileged flag with
docker run to disable these security measures.
Further, you can combine
--cap-drop to give the container only the capabilities that it actually needs. (See documentation) The
SYS_ADMIN capability is the one that grants mount privileges.