Expression starts with simplicity, and this is the beginning of a series

directory

  • It’s time for Docker: 1 Docker tutorial
  • It is time for Docker: 2 to install and cancel sudo execution Docker
  • It is time for Docker: 3 Docker small instances
  • Docker: 3.1 Docker19 command quick reference table
  • It is time for Docker: 4 Dockerfile to create the image
  • Docker: 5 Volume 3 types of container data space mount
  • It’s time for an overview of Docker: 6 Web usage

What is a Docker?

Docker packages the application and its dependencies in a single file. Running this file generates a virtual container. Programs run in this virtual container as if they were running on a real physical machine. With Docker you don’t have to worry about the environment.

Overall, Docker interface is quite simple, users can easily create and use containers, put their own applications into the container. Containers can also be versioned, copied, shared, and modified just like normal code.

Docker architecture

  • hostIs an array machine that executes docker commands. Daemon core is responsible for various operations (downloading docker images, running containers)
  • We’re throughclientCommands interact with the daemon, and the daemon performs subsequent operations
  • registryAll Docker players share the docker image service, daemen can go to registryPush/pullThe mirror

The purpose of the Docker

  • Simplify the configuration
  • Consolidation server
  • Code pipelining management
  • Improve development efficiency
  • Isolation of application
  • Debug ability
  • multi-tenant
  • Rapid deployment

The advantages of the Docker

  • Simplified procedures:

Docker allows developers to package their applications and dependencies into a portable container and then distribute them to any popular Linux machine for virtualization. Docker changes the way of virtualization, so that developers can directly put their work into Docker for management. Convenience and speed has been the biggest advantage of Docker. Tasks that used to take days or even weeks can be completed in seconds under the processing of Docker containers.

  • Avoid choophobia:

If you have a phobia of choice, or a senior sufferer. Then you can use Docker to wrap up your tangle! Docker images; Docker image contains the operating environment and configuration, so Docker can simplify the deployment of multiple application instances. Web applications, backend applications, database applications, big data applications such as Hadoop clusters, message queues, and so on can all be packaged and deployed as a single image.

  • Savings:

On the one hand, with the advent of cloud computing era, developers do not need to configure expensive hardware in pursuit of effect. Docker has changed the mindset that high performance inevitably leads to high price. The combination of Docker and cloud makes cloud space more fully utilized. It not only solves the problem of hardware management, but also changes the way virtualization is done.

The following

The next steps will be based on Docker Engine-Community 19.03.2

Client: Docker engine-community Version: 19.03.2 API Version: 1.40 Go Version: go1.12.8 Git commit: 6a30dFC Built: Thu Aug 29 05:26:49 2019 OS/Arch: darwin/amd64 Experimental: false Server: Docker Engine - Community Engine: Version: 19.03.2 API version: 1.40 (minimum version 1.12) Go version: go1.12.8 Git commit: 6a30dfc Built: Thu Aug 29 05:32:21 2019 OS/Arch: Linux/AMd64 Experimental: false containerd: Version: v1.2.6 GitCommit: 894 b81a4b802e4eb2a91d1ce216b8817763c29fb runc: Version 1.0.0 - rc8 GitCommit: 425 e105d5a03fabd737a126ad93d62a9eeede87f docker - init: Version: 0.18.0 GitCommit: fec3683Copy the code

More on that next time

Original is not easy, if you think my article is helpful to you, please click to encourage