Docker entry (1) docker installation in Centos 7, centosdocker

Source: Internet
Author: User

Docker entry (1) docker installation in Centos 7, centosdocker

Install docker in centos 7

What is Docker

Docker is an open-source project born in the early 2013 S. It was initially a spare-time project within dotCloud. It is implemented based on the Go language released by Google. The project was later added to the Linux Foundation, followed by the Apache 2.0 protocol, and the project code was maintained on GitHub.

Since its open source, Docker has been widely concerned and discussed, so that dotCloud was renamed Docker Inc. Redhat has supported Docker in its RHEL6.5 integration; Google is also widely used in its PaaS products.

The goal of the Docker project is to implement a lightweight OS virtualization solution. Docker is based on Linux containers (LXC) and other technologies.

On the basis of LXC, Docker further encapsulates the container so that users do not need to care about container management, making the operation easier. Operations on Docker containers are as simple as operations on a fast and lightweight virtual machine.

The following figure compares the differences between Docker and traditional virtualization methods. It can be seen that containers are virtualized at the operating system level and the operating system of local hosts is reused directly, the traditional method is implemented on the hardware layer.

Install and start docker

1. Switch to the root user su and press enter and enter the root password.

Install docker

[root@localhost /]# yum install docker-io

After the installation is successful, start the docker Service

[root@localhost /]# systemctl start docker

Add docker to start up

[root@localhost /]# chkconfig docker on
View docker Information

1. docker version: view the docker version, including the client, server, and dependent Go.
2. docker info: View System (docker) information, including the number of managed images and containers.

  

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.