How to access files/folders outside docker container on host machine?

  bind, docker, volumes, windows

We are creating openSource tool “Scanner” which scans files within specific directory after user gives path to that folder/directory as input (locally)

It’s working perfectly but now we need to containerize it using Docker and the issue is this that we cannot bind the whole root/system while building image (because in most of the cases, it can be very large and will also contains many unnecessary files and folders etc) but we also wanna access files within that specific folder for which user will provide “Scanner” with folder path (locally) and that will be outside the container

So do you have any idea that how it can be done and we can access the files and folder from outside the container and use them at run time

Source: Docker Questions

LEAVE A COMMENT