Home > Operation and Maintenance > Docker > Docker workflow introduction

Docker workflow introduction

王林
Release: 2020-07-08 17:42:10
forward
4827 people have browsed it

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   |
                                   +--------------+
Copy after login

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

Related labels:
source:csdn.net
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template