Installing and using Docker on CentOS7

Source: Internet
Author: User

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

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.