Prerequisites for installing Docker:
- Computers running a 64-bit CPU architecture, note that Docker does not currently support 32-bit CPUs
- Run Linux3.8 or later kernel. Some older versions of 2.6.x or later kernels can also run Docker, but the results can vary greatly. Also, if you need help with the old kernel, it is often recommended that you upgrade to a later version of the kernel.
- The kernel must support a suitable storage driver (Storeage driver), for example:
Device Manager;
AUFS;
Vfs
Btrfs
The default storage driver is typically device Mapper.
- The kernel must support and turn on the Cgroup and namespace (namespace) functions.
----------------------------
Check Device Mapper
# ls-l/sys/class/misc/device-mapper
lrwxrwxrwx 1 root root 0 Mar 8 12:15/sys/class/misc/device-mapper. /.. /devices/virtual/misc/device-mapper
# grep Deice-mapper/proc/devices
If device Mapper is not detected, start the installation
# yum Install-y device-mapper
After the installation is complete, the Dm_mod kernel module needs to be loaded
# modprobe Dm_mod
# Lsmod | grep dm_mod
Start installing Docker, if ready Epel source
# yum-y Install Docker-io
# service Docker Start
# Docker info (authentication)
Installing Docker on CentOS