Centos6.4 install docker tutorial

Source: Internet
Author: User

1. Upgrade the kernel

Because the kernel version of CentOS6.4 is 2.6.32-358.23.2.el6.x86 _ 64, and Docker requires a kernel version later than 3.0, we recommend that you use a kernel later than 3.8:

$ Wget http://elrepo.org/linux/kernel/el6/x86_64/RPMS/kernel-lt-3.10.84-1.el6.elrepo.x86_64.rpm
$ Sudo rpm-ivh kernel-lt-3.10.84-1.el6.elrepo.x86_64.rpm

II. Install Docker

$ Wget https://get.docker.com/rpm/1.7.0/centos-6/RPMS/x86_64/docker-engine-1.7.0-1.el6.x86_64.rpm
$ Sudo yum install-y libcgroup. x86_64 glibc. i686 sqlite. i68
$ Sudo rpm-ivh docker-engine-1.7.0-1.el6.x86_64.rpm

III. Configuration

$ Sudo vim/etc/sysconfig/docker
Other_args = "$ other_args -- registry-mirror = http://556b149e.m.daocloud.io"
Other_args = "$ other_args -- log-driver = none"

4. Start

$ Sudo service docker start

If the following problem occurs:

Docker: relocation error: docker: symbol dm_task_get_info_with_deferred_remove, version Base not defined in file libdevmapper. so.1.02 with link time reference

Solution:


$ Sudo cd/etc/yum. repos. d
$ Sudo wget public-yum.oracle.com/public-yum-ol6.repo
$ Sudo wget public-yum.oracle.com/RPM-GPG-KEY-oracle-ol6-O/etc/pki/rpm-gpg/RPM-GPG-KEY-oracle
$ Sudo yum update-y device-mapper-libs
$ Sudo yum update-y libcgroup

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.