Docker vs Virtual Machine

    14
    39



    Docker and Virtual machines are very close concepts. Getting confused between 2 is totally normal. In this video, I will try to differentiate between the docker and Virtual machine. We will run a docker command to check the docker layer in our system.

    Link to my programming Video Library:
    https://courses.LearnCodeOnline.in

    Instagram: https://instagram.com/hiteshchoudharyofficial

    Pick best UI color for your projects:
    https://UIColorPicker.com

    Desktop: https://amzn.to/2GZ0C46
    Laptop that I use: https://amzn.to/2Goui9Q
    Wallpaper: https://imgur.com/a/FYHfk

    Facebook: https://www.facebook.com/HiteshChoudharyPage
    Instagram: https://instagram.com/hiteshchoudharyofficial
    homepage: http://www.hiteshChoudhary.com
    Download LearnCodeOnline.in app from Google play store and Apple App store
    https://play.google.com/store/apps/details?id=in.learncodeonline.lco

    Disclaimer:
    It doesn’t feel good to have a disclaimer in every video but this is how the world is right now.
    All videos are for educational purpose and use them wisely. Any video may have a slight mistake, please take decisions based on your research. This video is not forcing anything on you.

    All Amazon links are affiliate links (If any).

    source

    Previous articleWebhooks in Jenkins | Integrating Jenkins with Github | DevOps Training | Edureka
    Next article(#2) What is Azure DevOps | Azure DevOps Tutorial For Beginners | WebGentle

    39 COMMENTS

    1. Ok. Help me understand this. First the joke, i setup docker on Windows 10, it almost ate 90% of Ram and cpu usage was high, i know it can be restricted to use only 1 or 2GB, but thats the joke, homestead by default uses 2gb, or less if you set it, so all this "it uses less resources" amounts to nothing, at least in Windows.
      Now who uses Docker? Developers right? So in my case where i develop apps with Laravel, Vue, homestead/vagrant is perfect for my dev setup, im still trying to find where docker is a better setup, all i see is "its just because everyone is using it, it must be good" . All docker examples i see make use of lazy setups and barely replicating a real server setup, they run the default web server with joke addresses like localhost:8888 , really? And then go on and repeat that docker makes use of less resources, but it is using your system resources, excluding Windows because thats where the joke is. With Homestead/vagrant you only get a server, no GUI, or linux with KDE , you only get a very lightweight linux server, which takes 2GB of ram, thats it, with that you get web server, daemons, dev libraries, all the same as you get with Linode, Digital Ocean, etc. And you get test domains, like drupalapp.test, laravelapp.test, blog.test , no jokes like localhost:8888 and all is mapped via a yaml file. You can put several Laravel, WordPress, Drupal on that server, and each have their own php version like 7.1, 7.2, 8.0 and they all can communicate with each other. With docker, good luck doing that, or even finding the right setup for this. All i see is very simplistic examples with lazy setups. When people say that it uses less resources its just horse crap, just look at how much a Laravel Homestead server takes, and how small really is, you dont install a VM for each website or app lol, like some dude in the comments said. Is a docker setup a more real server setup than Homestead/vagrant? I dont think so

    2. In theory, it doesn't need OS but actually all piece of functions need mini OS image. Some feature, we need to install in full OS. One good thing is when we break application into smaller pieces then we can control and fix it better.

    3. First: thanks for videos, it explain well the difference. I will continue see playlist.
      But until i feel comfortable with docker, i will continue to use vagrant which use VM / boxes without desktop environment, similar to docker.
      Second: Please fix the order of videos on the playlist or add to the name of each video a number order.
      Thanks .

    4. When I run docker on windows 10 pro than it pushed my system RAM to 93% while on the other hand when I use virtual box it goes to somewhere 80%.

      I have 4 GB RAM.

      Edit: I have installed Ubuntu and now I love my PC. Will check soon if docker is working properly.

      Edit 2: It's been 2 months since I switched to arch linux. ā¤ā¤