Installing Docker under Linux (CENTOS7)

Source: Internet
Author: User
Tags docker run

About Docker

Docker is an open-source application container engine that allows developers to package their applications and dependencies into a portable container, and then publish them to any popular Linux machine or virtualize them. Containers are completely sandbox-aware and do not have any interfaces with each other. Docker uses the client-server (c/s) architecture pattern to manage and create Docker containers using remote APIs. Docker containers are created with Docker images. A container's relationship to mirroring is similar to objects and classes in object-oriented programming. Website address: http://www.docker.com/

Docker installation

The system requires CentOS 7.X or higher, the kernel at least 3.10,64-bit

1. Uname–r Check kernel version

2, Vi/etc/profile Modify the proxy settings (if you need to set up the agent.) The content is as follows, * * for password, password to avoid containing the @ symbol)





Export Ftp_proxy

3. Yum Update upgrade local yum Package

4. Tee/etc/yum.repos.d/docker.repo <<-' EOF ' to add the Yum warehouse configuration (see below box for content)

[Dockerrepo]name=docker repositorybaseurl=https://yum.dockerproject.org/repo/main/centos/7/enabled=1gpgcheck= 1gpgkey=https://yum.dockerproject.org/gpgeof

5. Yum Install Docker-engine installation Docker package

6. Service Docker start start Docker service

7, MKDIR/ETC/SYSTEMD/SYSTEM/DOCKER.SERVICE.D

8, touch/etc/systemd/system/docker.service.d/http-proxy.conf If you need a proxy, add the Docker program agent (see box below)

[Service]                                                    Example   [service]environment= "http_proxy=http://proxy.ip.com:80"                     

11, Systemctl Daemon-reload

12, Systemctl Restart Docker (11th, 12 steps. Restart Docker operation)

13. Docker Run Hello-world runs the official image Hello World file to verify if the installation was successful.

Installing Docker under Linux (CENTOS7)

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.