How to install Docker in CentOS-6.7
This article mainly shows you "CentOS-6.7 how to install Docker", the content is easy to understand, clear, hope to help you solve your doubts, the following let the editor lead you to study and learn "CentOS-6.7 how to install Docker" this article.
1. Determine the CentOS version
Although you are sure it is CentOS, check the CentOS version number, as shown below:
[root@localhost] # rpm-Q centos-releasecentos-release-6-7.el6.centos.12.3.x86_642. Install EPEL
Use yum for installation:
Yum install-y http://mirrors.yun-idc.com/epel/6/i386/epel-release-6-8.noarch.rpm
3. Install Docker
Use yum for installation:
Yum install docker-io
4. Start Dockerservice docker start
5. Set up the boot Docker
Set up boot boot:
Chkconfig docker on6.HelloWord tests whether the installation is successful [root@localhost ~] # docker run ubuntu echo hello worldUnable to find image 'ubuntu:latest' locallylatest: Pulling from ubuntu48731f0a6276: Pull complete 9302827ed0a5: Pull complete f03f3645bde1: Pull complete cdd474520b8c: Pull complete ubuntu:latest: The image you are pulling has been verified. Important: image verification is a tech preview feature and should not be relied on to provide security.Digest: sha256:40cd91cbcaac863fa2fc0b8a8eaa440565ef5ce498d60177988f6f55ec691d9dStatus: Downloaded newer image for ubuntu:latesthello world above is all the content of the article "how to install Docker in CentOS-6.7". Thank you for reading! I believe we all have a certain understanding, hope to share the content to help you, if you want to learn more knowledge, welcome to follow the industry information channel!