For detailed instructions on installing Docker on CentOS server, centosdocker

Source: Internet
Author: User

For detailed instructions on installing Docker on CentOS server, centosdocker
1.

[root@localhost osem-master]#  sudo yum install -y yum-utils \>   device-mapper-persistent-data \>   lvm2Loaded plugins: fastestmirror, refresh-packagekit, securityDetermining fastest mirrors * base: mirror.lzu.edu.cn * extras: mirrors.aliyun.com * updates: mirrors.aliyun.com

2.

[Root @ localhost osem-master] # sudo yum-config-manager -- add-repo handle, refresh-packagekitadding repo from: https://download.docker.com/linux/centos/docker-ce.repograbbing file https://download.docker.com/linux/centos/docker-ce.repo to/etc/yum. repos. d/docker-ce.repodocker-ce.repo | 2.4 kB repo saved to/etc/yum. repos. d/docker-ce.repo

3.

[Root @ localhost osem-master] # sudo yum-config-manager -- enable docker-ce-edge loaded plug-in: fastestmirror, refresh-packagekit ====================================== ==== repo: docker-ce-edge ====================================== ===== [docker-ce-edge] bandwidth = 0base_persistdir =/var/lib/yum/repos/x86_64/6 baseurl = https://download.docker.com/linux/centos/7/x86_64/edgecache = 0 cachedir =/var/cache /yum/x86_64/6/docker-ce-edgecost = 1000 enabled = 1 enablegroups = Trueexclude = failovermethod = login = Falsegpgcadir =/var/lib/yum/repos/x86_64/6/ docker-ce-edge/gpgcadirgpgcakey = gpgcheck = Truegpgdir =/var/lib/yum/repos/x86_64/6/docker-ce-edge/gpgdirgpgkey = https://download.docker.com/linux/centos/gpghdrdir =/var/cache/ yum/x86_64/6/docker-ce-edge/headershttp_caching = allincludepkgs = keepalive = Truemdpolicy = group: primarymediaid = metadata_expire = 21600 metalink = shortlist = pailist_expire = 86400 name = Docker CE Edge-secret = password = persistdir =/var/lib/yum/repos/x86_64/6/docker-ce -edgepkgdir =/var/cache/yum/x86_64/6/docker-ce-edge/packagesproxy = login = proxy_password = proxy_username = login = Falseretries = login = Truesslcacert = login = sslclientkey = sslverify = Truethrottle = 0 timeout = 30.0 username =
4.
Go to https://download.docker.com/linux/centos/7/x86_64/stable/Packages/ and download the .rpm file for the Docker version you want to install.

5.

Stop?

Currently, CentOS only supports Docker in the released version.

Docker runs on CentOS 7 and requires a 64-bit system and a system kernel version later than 3.10.

Docker is running in? CentOS-6.5? For CentOS of a later version, the system must be 64-bit, the system kernel version is 2.6.32-431, or a later version.

 

View the kernel version:

uname -r
[me@me osem-master]$ uname -r3.10.0-693.el7.x86_64

Installation:

# yum -y install docker

Start the service:

# service docker start

Check and install:

# docker run hello-world

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.