[root@apptest ~]# yum remove docker

[root@apptest ~]# yum remove docker-selinux

 

[root@test yum.repos.d]# vi  /etc/yum.repos.d/docker.repo

 

[dockerrepo]

name=Docker Repository

baseurl=https://yum.dockerproject.org/repo/main/centos/$releasever/

enabled=1

gpgcheck=1

gpgkey=https://yum.dockerproject.org/gpg

 

[root@test yum.repos.d]# yum install docker-engine

 

已安装:

  docker-engine.x86_64 0:1.10.2-1.el7.centos                                    

 

作为依赖被安装:

  docker-engine-selinux.noarch 0:1.10.2-1.el7.centos   

 

[root@apptest ~]# service docker start

Redirecting to /bin/systemctl start  docker.service

[root@apptest ~]# docker images

REPOSITORY          TAG                 IMAGE ID            CREATED             SIZE

 

[root@test yum.repos.d]# docker version

Client:

 Version:      1.10.2

 API version:  1.22

 Go version:   go1.5.3

 Git commit:   c3959b1

 Built:        Mon Feb 22 16:16:33 2016

 OS/Arch:      linux/amd64

 

Server:

 Version:      1.10.2

 API version:  1.22

 Go version:   go1.5.3

 Git commit:   c3959b1

 Built:        Mon Feb 22 16:16:33 2016

 OS/Arch:      linux/amd64

[root@test yum.repos.d]#