Back

Explore Courses Blog Tutorials Interview Questions
0 votes
2 views
in DevOps and Agile by (47.6k points)

What is the relation between Docker and microservices?

1 Answer

0 votes
by (106k points)

We will understand the difference between Docker and Microservices by an analogy.

Docker is a Cup or in other words Container whereas Microservice is the liquid that you pour into it. You can pour different types of liquids in the same cup. But it will get crowded. Similarly, you can run many Microservices in same Docker container. 

But generally it is not advisable, if you are not interested in a Cocktail of Microservices.

Docker is light-weight, so it is best to keep one Microservice per Docker container.

So you can pour same liquid in multiple cups. Similarly, you can run same Microservice in multiple Docker containers. Multiple clients can drink or use your Microservice from different containers at the same time. If you are thinking to learn docker then here is a Docker Training Course which you can take up. For your reference I am also mentioning a video tutorial which you must watch.

.

Browse Categories

...