share windows folder (other than c/Users/) with docker container (using docker windows client)

后端 未结 1 1135
南旧
南旧 2020-12-19 18:57

Using docker client, is there a way to share a folder in windows with a docker container without having to first share the folder via the Virtual Box VM.

Have under

1条回答
  •  醉梦人生
    2020-12-19 19:17

    Not only you have to mount it in your VirtualBox, but you also have to instruct, in your boot2docker TinyCore session that you want that folder visible (once you have done a docker-machine ssh yourMachine):

    mount -t vboxsf -o uid=1000,gid=50 your-other-share-name /some/mount/location
    

    I know that you are using docker-machine, and not boot2docker, yet docker-machine is still using a boot2docker.iso VM image based on TinyCore, so this command still applies.

    0 讨论(0)
提交回复
热议问题