centos6.x
$ sudo yum install http://mirrors.yun-idc.com/epel/6/i386/epel-release-6-8.noarch.rpm
$ sudo yum install docker-io
CentOS7.x
CentOS7 系统 CentOS-Extras 库中已带 Docker,可以直接安装:
$ sudo yum install docker
安装成功Docker 服务,设置开机自启动。
标签:epel,CentOS,sudo,yum,install,docker,安装,Docker From: https://blog.51cto.com/u_12277263/5808896$ sudo service docker start
$ sudo chkconfig docker on