linux-tutorial/docs/docker/basics/docker-install.md

75 lines
2.2 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

# Docker 安装
> 本教程基于 `Docker 1.37`。
>
> Docker 有两种可安装版本:
>
> - [Community Edition (CE)](https://www.docker.com/community-edition/),即 Docker 社区版,适合学习。
> - [Enterprise Edition (EE)](https://www.docker.com/enterprise-edition),即 Docker 企业版,适合企业级开发使用。
<!-- TOC depthFrom:2 depthTo:2 -->
- [Windows 下安装 Docker](#windows-下安装-docker)
- [安装参考](#安装参考)
<!-- /TOC -->
## Windows 下安装 Docker
安装 Docker Toolbox 步骤:
1双击运行安装包
![](http://oyz7npk35.bkt.clouddn.com/images/20180920180926103056.png)
2点击需要安装的程序建议全安装
![](http://oyz7npk35.bkt.clouddn.com/images/20180920180926103147.png)
3安装附加选项建议选择前三个
![](http://oyz7npk35.bkt.clouddn.com/images/20180920180926103213.png)
4安装结果
![](http://oyz7npk35.bkt.clouddn.com/images/20180920180926102959.png)
### 可能遇到的问题
问题 1 - bash.exe 找不到
![](http://oyz7npk35.bkt.clouddn.com/images/20180920180926104526.png)
打开快捷方式的属性窗口,在目标栏设置如下:
```
"C:\Program Files\Git\bin\bash.exe" --login -i "D:\Tools\DockerToolbox\start.sh"
```
![](http://oyz7npk35.bkt.clouddn.com/images/20180920180926105007.png)
问题 2 - Hyper-V 冲突
![](http://oyz7npk35.bkt.clouddn.com/images/20180920180926105357.png)
## 安装参考
**Enterprise Edition (EE)**
- https://docs.docker.com/install/windows/docker-ee/
- https://docs.docker.com/install/linux/docker-ee/ubuntu/
- https://docs.docker.com/install/linux/docker-ee/rhel/
- https://docs.docker.com/install/linux/docker-ee/centos/
- https://docs.docker.com/install/linux/docker-ee/oracle/
- https://docs.docker.com/install/linux/docker-ee/suse/
**Community Edition (CE)**
- https://docs.docker.com/docker-for-mac/install/
- https://docs.docker.com/docker-for-windows/install/
- https://docs.docker.com/install/linux/docker-ce/ubuntu/
- https://docs.docker.com/install/linux/docker-ce/debian/
- https://docs.docker.com/install/linux/docker-ce/centos/
- https://docs.docker.com/install/linux/docker-ce/fedora/
- https://docs.docker.com/install/linux/docker-ce/binaries/