How is Kubernetes related to Docker?

0 votes
Could somebody explain how is kubernetes related to docker?
Jul 15 in Kubernetes by Namik
• 1,200 points
205 views

1 answer to this question.

+1 vote

Though we compare Docker Vs Kubernetes, it is an apple-to-orange comparison. 

Reason - They are both fundamentally different technologies but they work very well together, and both facilitate the management and deployment of containers in a distributed architecture.

Let me elaborate -

Docker started as a GITHUB project back in 2013(which is almost 5+ years from now). Slowly it grew massively with HUGE contributors across the world. Today it is a platform which is shipped as both - an open source as well as a commercial product. The orchestration is just a mere feature of Docker Enterprise Edition.

But if we really want to study how K8s is related to Docker, then the most preferred answer would be -

  • Docker CLI provides the mechanism for managing the life cycle of the containers. Where as the docker image defines the build time framework of runtime containers. 

  • CLI commands are there to start, stop, restart and perform lifecycle operations on these containers. 

  • Containers can be orchestrated and can be made to run on multiple hosts. The questions that need to be answered are how these containers are coordinated and scheduled? And how will the application running in these containers will communicate each other?

  • Kubernetes is the answer. 

  • Today, Kubernetes mostly uses Docker to package, instantiate, and run containerized applications. Said that there are various another container runtime available but Docker is the most popular runtime binary used by Kubernetes.

  • Both Kubernetes and Docker build a comprehensive standard for managing the containerized applications intelligently along with providing powerful capabilities.

  • Docker provides a platform for building running and distributing Docker containers. Docker brings up its own clustering tool which can be used for orchestration. 

  • But Kubernetes is a orchestration platform for Docker containers which is more extensive than the Docker clustering tool, and has capacity to scale to the production level. 

  • Kubernetes is a container orchestration system for Docker containers that is more extensive than Docker Swarm and is meant to coordinate clusters of nodes at scale in production in an efficient manner.  

  • Kubernetes is a plug and play architecture for the container orchestration which provides features like high availability among the distributed nodes

answered Jul 15 by Sirajul
• 17,910 points

Related Questions In Kubernetes

0 votes
2 answers
0 votes
1 answer

How to use gravitational teleport in a container/kubernetes environment?

You can use teleport to augment kubernetes ...READ MORE

answered Jun 28, 2018 in Kubernetes by ajs3033
• 7,280 points
289 views
0 votes
1 answer

image can't be pulled error when I try to pull a docker image - kubernetes

I think the image is being pulled ...READ MORE

answered Sep 4, 2018 in Kubernetes by Kalgi
• 39,270 points
439 views
0 votes
1 answer

How do I sign-in to kubernetes dashboard?

Since version 1.7 Dashboard uses more secure ...READ MORE

answered Sep 7, 2018 in Kubernetes by DareDev
• 6,810 points
122 views
0 votes
1 answer
+5 votes
7 answers

Docker swarm vs kubernetes

Swarm is easy handling while kn8 is ...READ MORE

answered Aug 27, 2018 in Docker by Mahesh Ajmeria
980 views
0 votes
2 answers

Kubernetes: How to resize a Persistent Volume?

This feature is available in newer versions ...READ MORE

answered Aug 6 in Kubernetes by Sirajul
• 17,910 points
256 views
0 votes
1 answer