win10 by Docker Toolbox installation docker and configure file sharing to mount a local disk directory

1. Download software
Software Download: http://mirrors.aliyun.com/docker-toolbox/windows/docker-toolbox/
select the appropriate version of this experiment, the following figure as an example:
win10 by Docker Toolbox installation docker and configure file sharing to mount a local disk directory
the download is complete
, double-click to run the program
win10 by Docker Toolbox installation docker and configure file sharing to mount a local disk directory
win10 by Docker Toolbox installation docker and configure file sharing to mount a local disk directory
win10 by Docker Toolbox installation docker and configure file sharing to mount a local disk directory
win10 by Docker Toolbox installation docker and configure file sharing to mount a local disk directory
win10 by Docker Toolbox installation docker and configure file sharing to mount a local disk directory
installation is complete, the desktop will the following three icons appear:
win10 by Docker Toolbox installation docker and configure file sharing to mount a local disk directory
Double-click the "Docker Quickstart Terminal" pop-up page will display the image file is downloading boot2docker.iso
due to resource on github, downloads will be very, very slow, there has been downloaded (permanent) by sharing what cloud disk:

链接:https://pan.baidu.com/s/13-oiDewOhxg63jkNepIXhA
提取码:d8u1
复制这段内容后打开百度网盘手机App,操作更方便哦

Moved after the completion of the download page to download the file prompt place:
win10 by Docker Toolbox installation docker and configure file sharing to mount a local disk directory
Double-click again "Docker Quickstart Terminal" page will pop up docker small whale icon the
software installation is complete. In this case the container has to download the image generation
stepped pit:

docker-machine Host does not exist: "default" 并且执行docker-machine env default也会报错
原因:就是没有boot2docker.iso文件
解决:下载并将iso文件移动到正确的位置

win10 by Docker Toolbox installation docker and configure file sharing to mount a local disk directory

2, the configuration file share to mount a local disk directory
Double-click the "Oracle VM VirtualBox" program
win10 by Docker Toolbox installation docker and configure file sharing to mount a local disk directory
win10 by Docker Toolbox installation docker and configure file sharing to mount a local disk directory
the first line to fill containers they want to share to the local directory path, the second folder name is automatically production, can also be customized
to fill in after the completion of restart the current server, take a little time to restart:
win10 by Docker Toolbox installation docker and configure file sharing to mount a local disk directory
after the reboot is complete, double-click "Docker Quickstart Terminal" page to enter the linux command line
win10 by Docker Toolbox installation docker and configure file sharing to mount a local disk directory
configuration is complete exit the default server, back linux command line interface
win10 by Docker Toolbox installation docker and configure file sharing to mount a local disk directory
stepped pit:

问题:第一次挂载本地目录的时候直接挂载到了default的/mnt目录下,退出时导致default容器故障,退出状态505(具体报错内容不记得了),docker-machine ssh default也连接不进去,docker run也生成不了容器
解决:在共享文件夹目录设置那将自己添加的目录先删掉,然后重启default服务器

Guess you like

Origin blog.51cto.com/11954248/2478916