Home  >  Article  >  Operation and Maintenance  >  What does docker do?

What does docker do?

王林
王林Original
2020-05-19 13:28:328700browse

What does docker do?

The role of docker:

1. Simplify configuration

This is the initial purpose of Docker and the biggest benefit of virtual machine VM Based on your application configuration, it can run seamlessly on any platform. Docker provides the same VM-like capabilities, but without any side effects. It allows you to put the environment and configuration into the code and then deploy it. The same Docker configuration can be used in various environments. This actually realizes the application environment and the underlying environment. Decoupled.

2. Code pipeline management

The code can be managed in a streaming pipeline, from the developer's machine to the production environment machine. Effective management. Because there will be various environments in this process, each of which may have slight differences, Docker provides a consistent micro-environment across these heterogeneous environments to achieve smooth release from development to deployment.

3. Production of developers

In a development environment, we hope that our development environment can be closer to the production environment, and we will make each service run In your own VM, this can simulate the production environment. For example, sometimes we do not always need to connect across the network, so we can load multiple Dockers with a series of services and run them on a single machine to simulate the production distributed deployment environment to the greatest extent.

4. Application Isolation

There are many reasons why you need to run multiple applications on one machine, which requires dividing the original monolithic application into many Microservices. To achieve decoupling between applications, deploying multiple application services in multiple Dockers can easily achieve this goal.

5. Service merging

Using Docker, you can also merge multiple services to reduce costs, occupy less operating system memory, and share multiple free memories across instances. , these technologies Docker can provide more effective service consolidation with tighter resources.

6. Multi-tenancy

Docker can be used as a multi-tenant container for cloud computing. Using Docker, it is easy to create and run multiple instances for each tenant. This is beneficial Its flexible fast environment and effective diff command.

7. Rapid deployment

Docker creates process containers without restarting the operating system. It can be shut down in a few seconds. You can create or destroy resources in the data center. , don’t worry about extra consumption. The typical data center utilization rate is 30%. By more aggressive resource allocation and achieving a more aggregated resource allocation for a new instance at a low cost, we can easily exceed this utilization rate and greatly improve the data center utilization efficiency.

Recommended tutorial: docker tutorial

The above is the detailed content of What does docker do?. For more information, please follow other related articles on the PHP Chinese website!

Statement:
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