Windows10以下和Windows10家庭版安装 使用阿里云的镜像下载
官网下载 : https://www.docker.com/products/docker-toolbox
阿里下载 : http://mirrors.aliyun.com/docker-toolbox/windows/docker-toolbox/
双击运行Docker Quickstart Terminal
[如果出现 windows 正在查找bash.exe 如果想亲自查找文件 请点击“浏览”]
右击Docker Quickstart Terminal快捷方式 修改bash.exe目录
修改前 "C:\Program Files\Git\bin\bash.exe" --login -i "D:\Program Files\Docker Toolbox\start.sh"
修改后 "D:\Git\bin\bash.exe" --login -i "D:\Program Files\Docker Toolbox\start.sh"
出现如下error时
Running pre-create checks...
Error with pre-create check: "Hyper-V is installed. VirtualBox won't boot a
64bits VM when Hyper-V is activated. If it's installed but deactivated, you
can use --virtualbox-no-vtx-check to try anyways"
Looks like something went wrong in step ´Checking if machine default exists`
找到docker安装目录 编辑start.sh 找到如下片段
if [ $VM_EXISTS_CODE -eq 1 ]; then
"${DOCKER_MACHINE}" rm -f "${VM}" &> /dev/null || :
rm -rf ~/.docker/machine/machines/"${VM}"
#set proxy variables if they exists
if [ "${HTTP_PROXY}" ]; then
PROXY_ENV="$PROXY_ENV --engine-env HTTP_PROXY=$HTTP_PROXY"
fi
if [ "${HTTPS_PROXY}" ]; then
PROXY_ENV="$PROXY_ENV --engine-env HTTPS_PROXY=$HTTPS_PROXY"
fi
if [ "${NO_PROXY}" ]; then
PROXY_ENV="$PROXY_ENV --engine-env NO_PROXY=$NO_PROXY"
fi
"${DOCKER_MACHINE}" create -d virtualbox $PROXY_ENV "${VM}"
fi
修改倒数第二行 意思是运行Docker不检查Hyper-V
"${DOCKER_MACHINE}" create -d virtualbox --virtualbox-no-vtx-check $PROXYENV $PROXY_ENV "${VM}"
出现如下状况时
Running pre-create checks...
(default) No default Boot2Docker ISO found locally, downloading the latest release...
(default) Latest release for github.com/boot2docker/boot2docker is v18.09.0
(default) Downloading C:\Users\user\.docker\machine\cache\boot2docker.iso from https://github.com/boot2docker/boot2docker/releases/download/v18.09.0/boot2docker.iso...
Error with pre-create check: "Get https://github-production-release-asset-2e65be.s3.amazonaws.com/14930729/6ae43280-e2b8-11e8-8e32-e857d71a28cd?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAIWNJYAX4CSVEH53A%2F20190101%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20190101T031407Z&X-Amz-Expires=300&X-Amz-Signature=5219f1bc7b82e3311d467bb4413d552181a10369ace2503499c50022a06d144a&X-Amz-SignedHeaders=host&actor_id=0&response-content-disposition=attachment%3B%20filename%3Dboot2docker.iso&response-content-type=application%2Foctet-stream: dial tcp 52.216.1.96:443: connectex: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond."
Looks like something went wrong in step ´Checking if machine default exists´... Press any key to continue...
可以重复尝试 或是把第三行命令中的链接手动下载 并放到该链接的文件夹中
## .
## ## ## ==
## ## ## ## ## ===
/"""""""""""""""""\___/ ===
~~~ {~~ ~~~~ ~~~ ~~~~ ~~~ ~ / ===- ~~~
\______ o __/
\ \ __/
\____\_______/
docker is configured to use the default machine with IP 192.168.99.100
For help getting started, check out the docs at https://docs.docker.com
Start interactive shell
龍江家園@SAMSUNG-Odyssey MINGW64 /d/Program Files/Docker Toolbox
$ #安装成功
Windows10(除家庭版外)有专用安装包 需要开启Hyper-V 如下步骤下载
百度搜索docker 进入官网 点击如下步骤 需注册用户 可直接点击下载链接
下载地址 : https://download.docker.com/win/stable/Docker%20for%20Windows%20Installer.exe
双击下载的exe安装文件 直接下一步即可