Centos 7 安装
脚本安装
curl -sSL https://get.docker.com/ | sh
yum install -y docker-selinux
service docker start
systemctl start docker.service
docker run hello-world
基本要求
- centos6.5及以后版本(64位)
- 安装epel库
添加yum源
yum install http://mirrors.yun-idc.com/epel/6/i386/epel-release-6-8.noarch.rpm
yum install docker-io
yum upgrade device-mapper-libs
rpm -iUvh http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm
yum install docker-io
查看版本号
#docker version
Client version: 1.7.1
Client API version: 1.19
Go version (client): go1.4.2
Git commit (client): 786b29d/1.7.1
OS/Arch (client): linux/amd64