Volume sharing in Docker and Virtualbox

I have installed docker toolbox on my Windows PC,when i install containers on it using Kitematic, I want to share a folder with my local machine. However docker runs in virtualbox on the default machine in VirtualBox.

So, i guess i first have to do a fvolume share of the virtualbox vm with my local machine and then a second share of the docker container with the folder that I shared in virtualbox. Could someone assist me in this please?

  • Docker Compose : build with docker --rm --force-rm to avoid storing intermediates
  • Go shared libraries for Docker containers to share
  • Visual Studio 2017 Docker project on Windows volumes issue
  • Running a docker image in Openshift Origin
  • Not able to debug on docker container with PyCharm 5
  • How can I set an overlay network within docker compose
  • ctrl-space centos in docker isn't working?
  • Select Node variables LISTEN and SERVER through a docker image
  • Docker for Windows doesn't work
  • docker: Says connection refused when attempting to connect to a published port
  • Use certificates in Docker container of Jenkins
  • “error validating certificates” when using docker-machine in GCE
  • One Solution collect form web for “Volume sharing in Docker and Virtualbox”

    No, you shouldn’t need to share any more folder: docker-machine will create a VM which auto-mount C:\Users\<yourLogin>.

    docker-machine ls
    docker-machine ssh default
    cd /C/Users/<yourLogin>
    

    You can mount other folders from your hosts, but you don’t have to.

    Docker will be the best open platform for developers and sysadmins to build, ship, and run distributed applications.