Linux under Docker installation

Source: Internet
Author: User
Tags docker run

1 installing Docker Docker on CentOS 6.4 currently only supports Ubuntu, so installing Docker on CentOS is a hassle (Issue #172). The official Docker document says Linux kernel is required to be at least 3.8 and CentOS 6.4 is the 2.6 kernel, so I whined whined to install the latest kernel 3.11.6, reboot and run Docker or fail, and finally find the reason is because the compile-time forgot to integrate the Aufs module.   Aufs need to compile with kernel, very troublesome. But no need to be so troublesome, a strongman has compiled the kernel with AUFS module, see here Installing Docker.io on CentOS 6.4 (64-bit)

1.1 Cancel SELinux because it interferes with the normal function of lxc sudo vim/etc/selinux/config selinux=disabled selinuxtype=targeted

1.2 Installing Fedora EPEL sudo yum install http://ftp.riken.jp/Linux/fedora/epel/6/x86_64/epel-release-6-8.noarch.rpm

1.3 Add HOP5 repo address cd/etc/yum.repos.d sudo wget http://www.hop5.in/yum/el6/hop5.repo

1.4 Installing the Docker-io sudo yum install docker-io automatically installs the 3.10 cores with the Aufs module, as well as the Docker-io package.

1.5 Add the Cgroup file system to the/etc/fstab so that Docker works correctly sudo echo "None/sys/fs/cgroup cgroup def Aults 0 0 ">>/etc/fstab

1.6 Modify Grub Boot order sudo vim/etc/grub.conf default=0 set default to the location of the newly installed kernel, typically 0

1.7 Restarting Sudo reboot

1.8 Check if the new kernel is booting successfully, check to see if the new kernel is booting up uname-r 3.10.5-3.el6.x86_64 instructions succeeded look at Aufs there is grep aufs/proc/filesystems nod EV Aufs Description exists

1.9 Starting the Docker daemon process sudo docker-d & if you are in the company and the company is online via proxy, you can tell Docker the proxy server using the following command (see here): sudo http_proxy=http: Xxx:port docker-d &

1.10 Download Ubuntu image sudo docker pull Ubuntu

1.11 Run Hello World sudo docker run ubuntu/bin/echo Hello World Hello World installation succeeded!!

2 installing Docker on Ubuntu See official documentation, Ubuntu Linux For more information about CentOS see CentOS feature page http://www.linuxidc.com/topicnews.aspx?tid=14 Dock ER details: Please click here Docker: please click here Open Source project docker,red hat new virtualization Choice http://www.linuxidc.com/Linux/2013-10/91051.htm Dockerlite: Lightweight Linux Virtualization http://www.linuxidc.com/Linux/2013-07/87093.htm Docker build Gitlab CI Full-process detailed http://www.linuxidc.com/Linux/ What is the difference between 2013-12/93537.htm Docker and a normal virtual machine? Http://www.linuxidc.com/Linux/2013-12/93740.htm Docker will change everything http://www.linuxidc.com/Linux/2013-12/93998.htm

Http://www.linuxidc.com/Linux/2014-01/95512.htm

Linux under Docker installation

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.