# Quick Start ## 公网环境安装Docker Engine curl -sSL http://acs-public-mirror.oss-cn-hangzhou.aliyuncs.com/docker-engine/internet | sh - ## 阿里云内网环境安装Docker Engine curl -sSL http://acs-public-mirror.oss-cn-hangzhou.aliyuncs.com/docker-engine/intranet | sh - # 参数支持 ## 安装指定版本的Docker Engine,可以通过第一个参数指定Docker Engine的版本号 curl -sSL http://acs-public-mirror.oss-cn-hangzhou.aliyuncs.com/docker-engine/internet | sh /dev/stdin 1.10.1 curl -sSL http://acs-public-mirror.oss-cn-hangzhou.aliyuncs.com/docker-engine/intranet | sh /dev/stdin 1.11.2 # 安装测试版、实验版的Docker Engine ## 测试版 curl -sSL http://acs-public-mirror.oss-cn-hangzhou.aliyuncs.com/docker-engine/test/internet | sh curl -sSL http://acs-public-mirror.oss-cn-hangzhou.aliyuncs.com/docker-engine/test/intranet | sh ## 实验版 curl -sSL http://acs-public-mirror.oss-cn-hangzhou.aliyuncs.com/docker-engine/experimental/internet | sh curl -sSL http://acs-public-mirror.oss-cn-hangzhou.aliyuncs.com/docker-engine/experimental/intranet | sh ## 注意 1. 因为测试版、实验版的版本号格式不统一,所以通过制定版本的方式安装可能存在问题。 Ubuntu的测试版、实验版的版本号格式示例: 1.12.0~rc1、1.12.0~rc2 CentOS的测试版、实验版的版本号格式示例: 1.11.0、1.12.0 2. CentOS系统上会为正式版、测试版、实验版分别添加数据源描述文件。如果你从正式版想要切换到测试版、实验版的话,请删除数据源描述文件。 描述文件分别为 /etc/yum.repos.d/docker-main.repo、/etc/yum.repos.d/docker-test.repo、/etc/yum.repos.d/docker-experimental.repo # FAQ ## 1. yum update、apt-get update时,报出 404 Not Found 的错误 因为源站路径更新导致镜像源的路径不正确,解决办法: curl -sSL http://acs-public-mirror.oss-cn-hangzhou.aliyuncs.com/docker-engine/resume | sh - ## 2. 降级安装时出现错误,需要先卸载Docker Engine ### Ubuntu apt-get remove docker-engine ### CentOS yum remove docker-engine