docker学习文档:
https://docs.docker.com/v18.09/get-started/
安装:
- win7、win8 等需要利用 docker toolbox 来安装,国内可以使用阿里云的镜像来下载,下载地址:http://mirrors.aliyun.com/docker-toolbox/windows/docker-toolbox/
- 下载完成之后直接双击安装
- 点击 Docker QuickStart 启动Docker Toolbox 终端
常见问题:
- 报错 :No default Boot2Docker ISO found locally:
- 关闭Docker Toolbox 终端,手动下载boot2docker.iso,地址:https://github.com/boot2docker/boot2docker/release
- 将下载好的boot2docker.iso文件拷贝至C:/Users/【你的账户】/.docker/machine/cache目录
- 报错 :error during connect: Get http://%2F%2F.%2Fpipe%2Fdocker_engine/v1.35/info: open //./pipe/docker_engine: The system cannot find the file specified. In the default daemon configuration on Windows, the docker client must be run elevated to connect. This error may also indicate that the docker daemon is not running.
- 错误的主要原因可能是win之前有安装过虚拟机
- 执行命令:docker-machine env --shell cmd default
- 重启Docker Toolbox 终端
浙公网安备 33010602011771号