What is the specific function of docker? What are the best practices?

  docker, question

I don’t know much about docker. After reading several articles about docker, I didn’t see a suitable use scenario for me. Is there a great god who can explain the advantages and best practices of docker in a simple and in-depth way? I am very grateful.

For large-scale projects, Docker can segment projects directly from the application level and establish a good micro-service system.

For deployment, especially distributed and cluster deployment, Docker can be built in one place and run everywhere. For computing clusters composed of several, dozens, hundreds or even more clusters, deployment time can be greatly reduced.

For development, Docker can provide a consistent environment for development and can make the local development environment consistent with the online environment, thus eliminating the link of incompatibility and adjustment and adaptation when the development is migrated to the online environment.