Introduction to docker core concepts

王林
Release: 2020-06-20 17:38:27
forward
3108 people have browsed it

Introduction to docker core concepts

There are three core concepts in Docker: Image, Container, and Repository.

Recommended tutorial:docker

Let’s talk about these three concepts respectively:

1. Image: and the iso image of windows In comparison, the images in Docker are layered and reusable, rather than a simple pile of files stacked together (similar to the difference between the source code of a compressed package and a git repository).

2. Container: The existence of a container is inseparable from the support of the image. It is a carrier of the image runtime (similar to the relationship between instances and classes). Relying on Docker's virtualization technology, independent "spaces" such as ports, processes, files, etc. are created for containers. Container is a "container" isolated from the host machine. Containers can communicate with hosts through ports, volumes, networks, etc.

3. Repository: Docker's warehouse is similar to git's warehouse, with warehouse name and tag. After building the image locally, the image can be distributed through the warehouse.

The above is the detailed content of Introduction to docker core concepts. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:juejin.im
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!