You only need to perform the following operations:
1. # cd/etc/yum. repos. d/
# Wget-O/etc/yum. repos. d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-6.repo
# Rpm-ivh http://mirrors.aliyun.com/epel/6Server/x86_64/epel-release-6-8.noarch.rpm
2. yum update
# Yum clean all & yum makecache & yum update-y
3. Install docker and start the docker service
# Yum install docker-io
# Service docker start
However, such a docker file system is faulty,
[Root @ jboss ~] # Docker info
Containers: 0
Images: 0
Storage Driver: devicemapper
Pool Name: docker-253: 0-5112199-pool
Pool Blocksize: 65.54 kB
Backing Filesystem: extfs
Data file:/dev/loop0
Metadata file:/dev/loop1
Data Space Used: 305.7 MB
Data Space Total: 107.4 GB
Metadata Space Used: 733.2 kB
Metadata Space Total: 2.147 GB
Udev Sync Supported: true
Data loop file:/var/lib/docker/devicemapper/data
Metadata loop file:/var/lib/docker/devicemapper/metadata
Library Version: 1.02.89-RHEL6 (2014-09-01)
Execution Driver: native-0.2
Kernel Version: 2.6.32-358. el6.x86 _ 64
Operating System: <unknown>
CPUs: 16
Total Memory: 70.75 GiB
Name: jboss
Note: Data file:/dev/loop0. docker's file storage adopts the loop block device mode for mounting, reading, and writing. It will be very troublesome to resize in the future.
So the operation is performed after Kernel 3.10 is upgraded.
Upgrade the kernel in four steps:
# Cd/etc/yum. repos. d
# Wget http://www.hop5.in/yum/el6/hop5.repo
# Yum install kernel-ml-aufs-devel-y
# Modify grub. conf to start kernel 3.10 & reboot
Continue!
Containers: 0
Images: 0
Storage Driver: aufs
Root Dir:/var/lib/docker/aufs
Backing Filesystem: extfs
Dirs: 0
Execution Driver: native-0.2
Kernel Version: 3.10.5-3. el6.x86 _ 64
Operating System: <unknown>
CPUs: 24
Total Memory: 11.81 GiB
Storage Driver: Have you seen aufs?