What's the difference between Docker Compose and Kubernetes?

后端 未结 12 1985
南笙
南笙 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:29

    Docker Compose:

    In a docker-compose.yml file each entry can optionally get docker-compose to build an image. each entry can represent a single container we want to build and each entry defines the networking requirements or ports.

    Kubernetes:

    Kubernetes expects all images to already be built and there is one config file per object we want to create and we have to manually setup up all networking.

    So we ensure our image is hosted on Docker Hub, make one config file to create the container and one config file to set up networking.

提交回复
热议问题