How to mount a host directory in a Docker container

后端 未结 25 1803
庸人自扰
庸人自扰 2020-11-22 12:43

I am trying to mount a host directory into a Docker container so that any updates done on the host is reflected into the Docker containers.

Where am I doing somethin

25条回答
  •  无人共我
    2020-11-22 13:20

    i had same issues , i was trying to mount C:\Users\ folder on docker
    this is how i did it Docker Toolbox command line

     $ docker run -it --name  -v /c/Users:/myVolData 
    

提交回复
热议问题