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.