Easily deploy the docker service on centos

Source: Internet
Author: User

First, because docker requires support for some Linux components and kernel features, make sure that the centos version is later than 6 and the kernel version is later than 2.6.32-431. You can upgrade centos6 to the latest version.

 
Sudo Yum upgrade

Then install cgroup

 
Sudo Yum install libcgroupservice cgconfig start # Start the croup service lssubsys-AM

If the installation is successful, the last command, lssubsys-Am, displays the mount points of all subsystems.


Install lxc using source code

Sudo Yum install GCC makewget http://sourceforge.net/projects/lxc/files/latest/download? Source = filestar-XF lxc-0.9.0.tar.gzcd Co., lxc-0.9.0./configure -- disable-capabilitiesmakesudo make installlxc-checkconfig

If the installation is successful, the last command lxc-checkconfig will successfully display the features that the kernel supports lxc.


Finally, install docker. Install docker on centos by directly downloading the bin package.

 
Cd ~ Wget https://get.docker.io/builds/Linux/x86_64/docker-latest.tgztar-XF docker-latest.tgzusr/local/bin/docker-d

In this way, the docker service is started, and there will be time to deploy a docker virtual container in the reverse direction.

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.