理解differences between docker vs. docker-compose

  • docker

    The docker cli is used when managing individual containers on a docker engine.

    It is the client command line to access the docker daemon api.

  • docker-compose

    The docker-compose cli can be used to manage a multi-container application.

    It also moves many of the options you would enter on the docker run cli into the docker-compose.yml file for easier reuse.

    It works as a front end “script” on top of the same docker api used by docker, so you can do everything docker-compose does with docker commands and a lot of shell scripting.

  • References

  1. What is the difference between docker and docker-compose
  2. docker-comnpose documents

猜你喜欢

转载自blog.csdn.net/The_Time_Runner/article/details/108893376