Docker in-depth understanding of the concepts of mirrors, containers, warehouses, etc. _docker

Source: Internet
Author: User
Tags docker hub

Basic concepts of Docker mirrors, containers, and warehouses

Mirror

A 1.Docker mirror is a read-only template.

For example, a mirror can contain a complete CentOS operating system environment in which only httpd or other applications required by the user are installed.

2. Mirroring can be used to create Docker containers.

3.Docker provides a simple mechanism to create mirrors or to update existing mirrors, and users can even download a mirrored image directly from others to use directly.

Container

    1. Docker uses containers to run applications.
    2. A container is a running instance created from a mirror. It can be started, started, stopped, and deleted. Each container is a secure platform that is isolated from each other.
    3. You can think of a container as a simplified version of the Linux environment (including root user rights, process space, user space, and network space) and the applications running in it.
    4. * Note: Mirrors are read-only, and the container creates a layer of writable layers as the topmost layer at startup.

Warehouse

    1. A warehouse is a place where mirrored files are centrally stored. Sometimes the warehouse and the warehouse registration server (Registry) confused, not strictly differentiated. In fact, there are many warehouses on the Warehouse registry server, each containing multiple mirrors, each with a different label (tag).
    2. The warehouse is divided into two forms: public warehouse (publicly) and private warehouse (privately).
    3. The largest public warehouse is the Docker Hub, which holds a large number of mirrors for download. It is the default Docker warehouse, but it is slow to download at home. Of course, users can also create a private warehouse within the local network. When a user creates his or her own mirror, it can be uploaded to a public or private warehouse using the push command, so that the next time the mirror is used on another machine, it is only necessary to pull down from the warehouse.
    4. * Note: The concept of the Docker warehouse is similar to Git, and the registration server can be understood as a hosting service such as GitHub.

Docker container Installation

Redhat/centos must be above 6.6, or 7.x to install Docker, it is recommended to use Docker on Redhat/centos 7 because the Redhat/centos 7 kernel is upgraded to kernel 3.10, for LXC container support better.

centos6.6 Installation Docker

RPM-IVH http://mirrors.yun-idc.com/epel/6Server/x86_64/epel-release-6-8.noarch.rpm
 
Yum install Docker-io       
 
Chkconfig Docker on
 
service Docker start
 
Docker version

Start the problem you are experiencing

Question: Docker#docker dead but PID file exists

Workaround:

Yum-config-manager--enable Public_ol6_latest
Yum Install Device-mapper-event-libs

Thank you for reading, I hope to help you, thank you for your support for this site!

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.