install Docker on centos6.5

Docker requires a 64-bit installation regardless of your CentOS version. Also, your kernel must be 3.10 at minimum, which CentOS 7 runs.

Install Docker on Centos

  1. Upgrade the kernel
    wget http://www.hop5.in/yum/el6/hop5.repo
    yum install kernel-ml-aufs kernel-ml-aufs-devel

2、 Modify grub's main configuration file /etc/grub.conf, set default=0, which means that the content under the first title is the kernel started by default (generally, the newly installed kernel is in the first position).

3、 Restart the system and your kernel will be upgraded successfully.
[ root@localhost ~]# uname -r
3.10.5- 3. el6.x86_64
Check whether the kernel supports aufs:
[ root@localhost ~]# grep aufs /proc/filesystems
nodev aufs

Two, install docker
1、 First close selinux:
setenforce 0
sed -i ‘/^SELINUX=/c\SELINUX=disabled’ /etc/selinux/config

2、 The docker-io package has been provided in the Fedora EPEL source, download and install epel:
rpm -ivh http://mirrors.sohu.com/fedora-epel/6/x86_64/epel-release-6-8.noarch.rpm
sed -i ‘s/^mirrorlist=https/mirrorlist=http/’ /etc/yum.repos.d/epel.repo

3、 yum install docker-io:
yum -y install docker-io

4、 Start docker:
service docker start

  1. View the docker log:
    cat /var/log/docker

  2. Download centos mirror
    sudo docker pull centos

  3. Run hello world
    sudo docker run centos /bin/echo hello world
    hello world

The installation is successful! !

Recommended Posts

Install Docker on Centos7
install Docker on centos6.5
Install docker transfer on Centos7
Install docker on Centos system
CentOS 7 install Docker
CentOS7 install Docker
Centos7 install Docker
Centos7 install docker18
centos7 install docker
CentOS 6 install Docker
Centos8 install Docker
install LNMP on centos7.4
Install Java on Centos 7
Install docker on Ubuntu
CentOS 7 install Docker service
Nodejs install on centos7
Install FFmpeg on CentOS 8
Install Docker on ubuntu18.04
Install RabbitMQ on CentOS 7
Install Node.js on Centos
Maven install on centos7
Install MongoDB on CentOS 7
Install Surelog on CentOS8
CentOS 8-dnf install docker
Openjdk install on centos7
Install Jenkins on centos7
install RabbitMQ on centos
Install Docker on Ubuntu18
install oracle on centos
Install Elasticsearch 6 on centos7
Install RabbitMQ on CentOS7
CentOS 7 install Docker CE
Docker practice (1): install Docker on Ubuntu 16.04
Install mysql online on centos
Install ElasticSearch 7.x on CentOS 7
How to install and use Docker on CentOS 7
Install MySQL 8.0.16 on Linux Centos
install EPEL repo on centos
1.5 Install Centos7
install virtualbox on centos server
Install Docker on Ubuntu 18.04 offline
How to install Docker CE on RHEL 8 / CentOS 8
Docker EE installation on centos7
Install Nginx server on CentOS 7
How to quickly install docker on Linux (Centos version)
How to install jdk1.8 on centOS7
How to install MySQL on CentOS 8
Install JDK8 in rpm on CentOS7
How to install Memcached on CentOS 8
Install MATE or XFCE on CentOS 7
How to install R on CentOS 8
How to install FFmpeg on CentOS 8
How to install Virtualbox on CentOS 8
How to install TeamViewer on CentOS 8
How to install Perl 5 on CentOS
How to install Git on CentOS 8
How to install Elasticsearch on CentOS 8
Install MySql with Docker in CentOS7
How to install Jenkins on CentOS 8
How to install Java on CentOS 8
How to install Go on CentOS 8