Home >Operation and Maintenance >Docker >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!