docker采用Linux内核技术,所以只能运行在Linux上,所谓的windows平台是使用boot2Docker工具,boot2Docker是在VisualBox构建一个linux精简化环境。
Boot2Docker官方下载地址:https://github.com/boot2docker/windows-installer/releases
Boot2Docker官方安装手册:http://docs.docker.com/installation/windows/
系统环境centos7.3
使用默认yum源或阿里等yum源默认安装的版本太久,这里使用docker官方yum源进行安装
cat >/etc/yum.repos.d/docker.repo <<-EOF [docker] name=Docker Repository baseurl=https://yum.dockerproject.org/repo/main/centos/7 enabled=1 gpgcheck=1 gpgkey=https://yum.dockerproject.org/gpg EOF
yum makecache yum install docker-engine