docker_practice/introduction/why.md

64 lines
5.3 KiB
Go
Raw Normal View History

## 使 Docker
Docker
2019-08-11 18:49:23 +08:00
## Why use Docker ?
As a new virtualization solution, Docker has many advantager over
other traditional virtualization solutions.
###
Docker
2019-08-11 18:49:23 +08:00
### Use System Resources more efficiently
Docker has high utilization rate of system resources, because container does not need additional overhead such as hardware virtualization and running the whole system. It's more efficient than traditional virtual machine technology in application executing speed, memory expend and file storage speed. Therefore, a host with the same configuration can often run more applications than virtual machine technology.
###
Docker 宿
2019-08-11 18:49:23 +08:00
### Faster startup time
The traditional virtual machine technology needs minutes to startup application service, but Docker can do it in seconds or milliseconds due to running on the kernel of host machine and not running the whole system. It saves a considerable amount of time for developing, testing, deploying.
###
2017-09-04 22:06:11 +08:00
bug Docker **
2019-08-11 18:49:23 +08:00
### Consistent operating environment
The consensus problem of environment is a common problem in developing. It causes some bugs which weren't found at developing due to different environments of developing, testing, production. Docker's image provides a complete runtime environment without kernel, which ensures consistency of the application runtime environment so that problmes like * This piece of code is okey on my machine * do not recur.
###
[DevOps](https://zh.wikipedia.org/wiki/DevOps))人员来说,最希望的就是一次创建或配置,可以在任意地方正常运行。
2019-08-11 18:49:23 +08:00
### CI/CD
For development and operation[DevOps](https://zh.wikipedia.org/wiki/DevOps)people, desirable thing is to create or configure at once and run normally anywhere.
2017-11-22 20:28:10 +08:00
使 Docker [Dockerfile](../image/dockerfile/) [(Continuous Integration)](https://en.wikipedia.org/wiki/Continuous_integration) 系统进行集成测试,而运维人员则可以直接在生产环境中快速部署该镜像,甚至结合 [持续部署(Continuous Delivery/Deployment)](https://en.wikipedia.org/wiki/Continuous_delivery) 系统进行自动部署。
2019-08-11 18:49:23 +08:00
CI/CD can be achieved by customizing application mirrors with Docker. Developers can build images with [Dockerfile](../image/dockerfile/) and use [Continuous Integration](https://en.wikipedia.org/wiki/Continuous_integration) for integration testing. Operators can deply product environment quickly with this images, even use [Continuous Delivery/Deployment](https://en.wikipedia.org/wiki/Continuous_delivery) for automatic deployment.
使 `Dockerfile` 使便
###
Docker 使Docker
###
2018-12-14 19:08:14 +08:00
Docker 使使使Docker [](https://hub.docker.com/search/?type=image&image_filter=official),既可以直接在生产环境使用,又可以作为基础进一步定制,大大的降低了应用服务的镜像制作成本。
2014-10-03 11:34:57 +08:00
###
| | | |
2017-11-24 16:50:25 +08:00
| :-------- | :-------- | :---------- |
| | | |
2017-11-24 12:32:36 +08:00
| 使 | `MB` | `GB` |
| | | |
2014-10-03 11:34:57 +08:00
| | | |