Aliyun ECS centos6.10安装docker

0. yum install -y yum-utils device-mapper-persistent-data lvm2 

1. sudo yum install epel-release

## sudo yum remove docker*

yum install docker-io, yum install docker-engine 均告失败

2. wget https://get.docker.com/rpm/1.7.1/centos-6/RPMS/x86_64/docker-engine-1.7.1-1.el6.x86_64.rpm 

3. sudo rpm -ivh docker-engine-1.7.1-1.el6.x86_64.rpm 

4. 安装配置cgroup

yum install -y libcgroup

sudo vim /etc/fstab

增加一行

none /sys/fs/cgroup cgroup defaults 0 0

5. reboot

6. service docker start

7. 测试

docker pull centos成功

你可能感兴趣的:(Aliyun ECS centos6.10安装docker)