Installing Docker on CentOS

Source: Internet
Author: User

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

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.