Guide |
Docker is an open source tool that makes it easy to create and manage Linux containers, which are like lightweight virtual machines and can be started or stopped at millisecond speed. In this article we will show you how to install Docker in CentOS 7.x. |
Docker helps system administrators and programmers develop applications in containers, and can scale to thousands of nodes, the main difference between containers and VMS (virtual machines) is that containers provide process-based isolation, and virtual machines provide complete isolation of resources. One of the limitations of Docker is that the virtual machine may take a minute to boot, and the container takes only a second or less, the container uses the kernel of the host operating system, and the virtual machine uses a separate kernel, which is used only on 64-bit operating systems.
installation of Docker in CentOS 7
The Docker package is already included in the default Centos-extras software source. So you want to install Docker, just run the following yum command:
View the Docker version
The display version is Docker 1.83,API version 1.20.
start the Docker service
After the installation is complete, use the following command to start the Docker service and set it to boot:
Download the official CentOS image to the local
Confirm that the CentOS image has been acquired
run a Docker container
We can see that the CentOS container has been started and we have seen the bash prompt. In the Docker command we used the "-I capture standard input and output" and "-T assign a terminal or console" option.
To disconnect from the container, enter exit.
We can also search for containers based on Fedora and Ubuntu OS
Displays the list of currently running containers
This article was reproduced from:http://www.linuxprobe.com/install-use-docker-in-centos7.html
more Linux Dry Goods visit:http://www.linuxprobe.com/
Installing and using Docker on CentOS7