What's the difference between Docker Compose and Kubernetes?

后端 未结 12 1981
南笙
南笙 2021-01-29 16:50

While diving into Docker, Google Cloud and Kubernetes, and without clearly understanding all three of them yet, it seems to me these products are overlapping, yet they\'re not c

12条回答
  •  北海茫月
    2021-01-29 17:47

    docker-compose is just a file you maintain which can help you manage containers easily. So at the most bottom level, you have the docker daemon responsible for overseeing individual containers but you will have to pretty much do every manually y issuing commands to the daemon, then you have docker-compose which actually lets you manage various containers together like starting all of them together, killing them or restarting them. you can achieve the same by using a shell script but then it will become very complicated to monitor each container and you will have to write various methods which docker-compose gives you for free.

    Kubernetes is just a way to manage the machines on which you install containers PERIOD. Now in Kubernetes the lowest level of unit is a pod and thus abstracting away from you the developer various ops related work whereas using docker swarm you will still have to put an ops hat to maintain the machines running the containers.

提交回复
热议问题