Intellipaat Back

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

How is Docker better than VM?

1 Answer

0 votes
by (106k points)

I will tell you this by an example. Let's consider my name is VM. One fine day, along with my 10 friends I went to play cricket. Batsmen keep hitting the ball towards me. I keep running and throwing back the ball to the keeper. And all of a sudden, I was not able to handle the load and I fell down. I weigh around 100kgs. So for a guy of 100kgs, it's not easy to get up and serve back again. Then I gave it a thought, what if I am lightweight. I can fall and serve back in the blink of an eye. That's where docker came into the picture. It's so lightweight that by the time a VM restarts, you could spin up a 100 docker containers.

  • For deploying applications on VM level is not good when two applications depend on modules of different versions.

  • Whatever you can do with Docker can also be done by VM, but that is not the case with docker. It's a minimized version of VM.

  • There are some issues with networking in Docker. 

  • VM is costly than Docker. Having a dedicated VM for hosting an application, then you must be rich enough.

If you want to make your career in the cloud field then you must take up the following Docker Training Course. I am also mentioning a video tutorial for you which you must watch to learn all the basics about Docker.

.

Related questions

0 votes
1 answer
asked Jul 29, 2020 in Docker by Amyra (12.9k points)
0 votes
1 answer
0 votes
1 answer
asked Feb 12, 2020 in Azure by tusharsharma (4k points)

31k questions

32.8k answers

501 comments

693 users

Browse Categories

...