How to deploy Dockerfile and application files to boot2docker

前端 未结 6 607
孤城傲影
孤城傲影 2021-02-01 14:16

I\'m just starting to learn Docker, and I\'m trying to get a simple setup with boot2docker on Windows. I could not find in any tutorial or samples online how to make my project

6条回答
  •  [愿得一人]
    2021-02-01 14:34

    Following your current progress, and presuming your samba container is running, you can find the path to the /data folder on your Boot2docker VM by running:

    $ docker inspect 
    

    This will list the containers configuration details. Near the very bottom you should see:

    "Volumes": {

        "/data": "/mnt/sda1/var/lib/docker/vfs/dir/
    

    That's your boot2docker vm /data path. Simply cd into that folder

    $ cd /mnt/sda1/var/lib/docker/vfs/dir/
    

    From Windows Explorer, Navigate to:

    \\192.168.59.103\data
    

    Now you can paste/copy/create some files into that data folder and you should see them populate on your Boot2docker VM at path: /mnt/sda1/var/lib/docker/vfs/dir/

提交回复
热议问题