Home >Operation and Maintenance >Docker >What kind of projects can be placed in docker
Projects that can be placed in docker include: 1. Projects that require frequent upgrades; 2. Projects with frequent changes in the online code running environment; 3. Projects that are too large; 4. Projects that take up too many resources Projects; 5. Projects that require the integration of open source services, etc.
The operating environment of this article: ubuntu 18.04 system, Docker version 20.10.11, Dell G3 computer.
What kind of projects can be placed in docker? What projects are suitable for docker deployment?
The docker official website explains the typical scenarios of docker:
Automate the packaging and deployment of applications
Create a lightweight, private PAAS environment
Realize automated testing and continuous integration/deployment
Based on these characteristics, we can imagine, If your project has the following pain points or needs, then you can consider using docker.
Frequent upgrades are required, so you can make full use of the docker image version to quickly upgrade and roll back.
The development, testing, and online code running environments change frequently. Whenever you check bugs for a long time, it turns out that the environment is inconsistent.
Sales presentation or POC demo. There is no historical data after startup, so you don’t have to worry about cleaning up the data.
The project size was too large and microservice transformation was carried out. It needs unified management. Learn about docker-compose.
If it takes up too many resources, you can use docker resource quotas and set startup policies to improve stability.
Integrate open source services. With the popularity of docker, more and more open source projects provide docker image deployment.
Note: Everything has two sides. Not all projects are suitable for docker transformation, and any changes may have bad effects. You must remain in awe of technology.
Follow the scientific process, the "Enterprise Container Cloud Architecture Development Guide" gives a transformation process, you can refer to:
Evaluate cost feasibility
Transformation plan
Code modification
Make an image
Single-machine verification
Multi-machine deployment
Recommended learning: "Docker Video Tutorial"
The above is the detailed content of What kind of projects can be placed in docker. For more information, please follow other related articles on the PHP Chinese website!