Home >Operation and Maintenance >Docker >Docker workflow introduction

Docker workflow introduction

王林
王林forward
2020-07-08 17:42:104826browse

Docker workflow introduction

docker workflow:

(Recommended tutorial: docker tutorial)

1. Everything starts with Dockerfile. Dockerfile is the source code of the image.

2. After creating the Dockerfile, you can build it to create a container image. An image is just a "compiled version" of the "source code", which is the Dockerfile.

3. After obtaining the container image, you should use the registry to redistribute the container. The registry is like a git repository - you can push and pull images.

4. Next, you can use the image to run the container. In many ways, running containers are very similar to virtual machines (but without a hypervisor).

 +------------+  docker build   +--------------+  docker run -dt   +-----------+  docker exec -it   +------+
    | Dockerfile | --------------> |    Image     | --------------->  | Container | -----------------> | Bash |
    +------------+                 +--------------+                   +-----------+                    +------+
                                     ^
                                     | docker pull
                                     |
                                   +--------------+
                                   |   Registry   |
                                   +--------------+

The above is the detailed content of Docker workflow introduction. For more information, please follow other related articles on the PHP Chinese website!

Statement:
This article is reproduced at:csdn.net. If there is any infringement, please contact admin@php.cn delete