How to a share network drives in a Docker container?

Hi,
I need to share my windows network drive(s) in a Docker conrainer, has anyone done that? if so plz share

thanks

Hi @randomwalks,

Here is the relevant documentation on the Docker website. As long as the path to the network drives are visible to the system running the Docker daemon, this should be feasible as a “normal” bind-mount, and be no different from mounting any other directory inside your container(s).

Docker on Windows usually goes through some level of virtualization, so you’ll first need to make sure the network drives are available to the underlying system; I have little experience with WSL2 myself but I imagine it should be feasible to give it access to network drives if it doesn’t have it by default.