Virtual Machine (VM) vs Docker

Поділитися
Вставка
  • Опубліковано 17 кві 2023
  • Learn more about Docker → ibm.biz/BdPg33
    Learn more about Virtual Machines → ibm.biz/BdPg3T
    Is Docker just a lightweight virtual machine? It's true that both have one thing in common, namely virtualization, but there are significant differences that you will need to understand in order to pick the right one for your requirements. In this video, Martin Keen explains the ways that Docker and virtual machines are similar as well as their main differences. He also covers their relative strengths and ends by offering recommendations on criteria that will help you choose which is best for your project.
    Get started for free on IBM Cloud → ibm.biz/sign-up-now
    Subscribe to see more videos like this in the future → ibm.biz/subscribe-now

КОМЕНТАРІ • 117

  • @summatim
    @summatim Рік тому +36

    0:01: Difference between Docker and VMs
    2:07: Components of Docker
    4:02: Components of VMs
    5:43: Use cases for VMs
    6:52: Use cases for Docker containers
    7:56: Considerations for selecting between Docker and VMs
    8:27: Transformative impact of virtualization technologies

  • @Felttipfuzzywuzzyflyguy
    @Felttipfuzzywuzzyflyguy Рік тому +52

    This video is technical enough to inform while also being approachable. Very well done, thank you so much!

  • @siraz6899
    @siraz6899 Рік тому +6

    These tutorials series are really good

  • @WarpRulez
    @WarpRulez Рік тому +29

    One big difference between the two is the security of the host system: If you run something as root in a VM, it stays in the VM and has no effect on the host OS. You can completely hose the guest system with a botched command ran with root privileges, and the host OS is completely unaffected.
    However, if you run something as root in Docker, it will be run with root privileges in the host OS. And since you can set a different root password in a docker container, including no password at all, that means you can run stuff with root privileges without a root password from Docker, in a way that affects the host OS (eg. accesses, creates or modifies files in the host OS with root privileges).
    I'm not making that up, just search Docker's own documentation on security.

    • @joeycrysel9333
      @joeycrysel9333 Рік тому +2

      Which is when you run Docker in a VM or LXC.

    • @fabiandrinksmilk6205
      @fabiandrinksmilk6205 11 місяців тому +3

      This is where Podman comes into play.

    • @markc6714
      @markc6714 11 місяців тому

      ​@@joeycrysel9333 which is when you look for a product for grown ups and not id1ots

  • @neail5466
    @neail5466 Рік тому +5

    Probably the most complete and concise version in this topic from IBM.❤

  • @dikieaditya1321
    @dikieaditya1321 Рік тому +17

    It is also possible to use VM and then run several Docker container inside that VM.

    • @p33yush
      @p33yush Рік тому

      I am not really sure but docker requires something called as kvm acceleration. You will specially need to enable the kvm virtualization in your vm software, then probably you can run docker. I tried it in Ubuntu but my kvm OK was throwing error because it had virtual cpu

    • @egemenka1
      @egemenka1 Рік тому +7

      This is how Docker works in Mac/Windows.

    • @foodie3140
      @foodie3140 Рік тому

      Yes you can

    • @magicball60
      @magicball60 Рік тому +2

      It’s actually a common practice

    • @schmud143
      @schmud143 Рік тому

      this is a very typical use case from independent learning, researchers, to enterprise environments

  • @bizmarinainfo1808
    @bizmarinainfo1808 Рік тому +4

    Neat and sweet. Thank you for the easy explanation.

  • @FuzzerHash
    @FuzzerHash Рік тому +1

    Excelente explanation, that's so clear.

  • @alanjrobertson
    @alanjrobertson Рік тому +2

    Great video, any chance of a behind the scenes as to how you create it? Love the glowing writing.

  • @Flankymanga
    @Flankymanga Рік тому +12

    Today I had a use case - a situation where we needed to decide do we need to use a docker or a virtual machine. I need a secure environment and thus isolation was very important and we choose the VM path.

  • @michaelcharlesthearchangel
    @michaelcharlesthearchangel Рік тому +27

    One of the best examples to use when thinking of VMs in comparison to a Docker is: Non-executable Vs Executable, UA-cam in Chrome browser Vs UA-cam App.

    • @hedgefundsrus
      @hedgefundsrus Рік тому

      I feel IBM has a Docker-bias because of their partnerships with Docker. Similar with how Microsoft OneDrive favors Adobe applications.

    • @shafayet5689
      @shafayet5689 7 місяців тому

      ​@@hedgefundsrusyep tbh thats what I also feel

  • @TinnyHidge
    @TinnyHidge Рік тому +1

    Great explanation. Cheers! 👍

  • @hugofullante3758
    @hugofullante3758 Рік тому

    Thank you for clear explanation

  • @santanuhajra6485
    @santanuhajra6485 Рік тому

    Fantastic explanation sir !!!

  • @veritasliberabitvos454
    @veritasliberabitvos454 Рік тому +2

    Docker - Plus it is like lego, get the pieces you need to build the environment even to the versions. So, SQL / MYSQL / Mongodb / Node / Redis Cache, etc. You bring the pieces / config in the docker compose to link these parts together. And most works well.

  • @redo22
    @redo22 Рік тому +1

    thanks a lot for these incredible good videos!

  • @Spudgun81
    @Spudgun81 Рік тому +1

    Great video. I'd like some videos on telecoms/network concepts.

  • @severtone263
    @severtone263 3 місяці тому

    Great informative explanation. Thank you

  • @thegreatestadvice88
    @thegreatestadvice88 Рік тому

    Thank you for this. I am coming from finance and trying to familiarize myself with technology.

  • @hpandeymail
    @hpandeymail Рік тому

    Wow .. great lecture 🙏👏

  • @Z9036
    @Z9036 Рік тому +6

    It just struck me, but look at his hand movements when writing--he really is writing inverse. And I don't see any obvious cuts. If he does these videos in a single take while also writing English inversed right-to-left, that's quite something. That or a brilliant editing team.

    • @MichaelClark-ro4vo
      @MichaelClark-ro4vo Рік тому +7

      My guess is they flip the whole video horizontally

    • @patrick1038
      @patrick1038 Рік тому +1

      lmao why all that trouble? Why not just flip the video before posting it ?

  • @Hiram8866
    @Hiram8866 Рік тому +8

    Very interesting and informative. I had wondered what the difference was.

  • @harshulrohilla1868
    @harshulrohilla1868 2 місяці тому

    GREAT LECTURE THANX TONI KROOS😊

  • @tannerkinsey
    @tannerkinsey Місяць тому

    Far from homebrew… great lecture!

  • @Shadab-px2vn
    @Shadab-px2vn Місяць тому

    these IBM videos are so easy to process. Please create a learning platform too @IBM

  • @csanvi
    @csanvi 10 місяців тому

    Thank you Martin.

  • @aouss.altwaijry
    @aouss.altwaijry Рік тому +1

    Great material.

  • @Gutenmorgenside
    @Gutenmorgenside Рік тому +5

    The master brewer doing his day job.

  • @jaffarbh
    @jaffarbh Рік тому +2

    Nothing stops you from running containers within VMs, although that's not the most efficient way of using resources but it's the best of the two worlds ;-)

  • @BringMe_Back
    @BringMe_Back Рік тому +1

    thanks a lot 👍😊

  • @Bultizar
    @Bultizar Рік тому +2

    It's common to see Docker Running on Hypervisor based VM's. Do what needs to be done for your environment. I don't think IT has ever been as modular as it is nowadays

  • @vultureTX001
    @vultureTX001 Рік тому +2

    VM-- because sometimes you will deploy the finished app to actual hardware after perfecting the prototype in VMs.

  • @rikoari
    @rikoari Рік тому +1

    Did you flip/mirror the video in the post?
    Curious on how this writing being done.

  • @MinorMood
    @MinorMood Рік тому +1

    you really were writing all these words mirrored - so they would look in an normal way for the viewer on the other side of the screen? Wow? that blew my mind....

  • @larryryba4497
    @larryryba4497 Рік тому +2

    Can we get recipe videos for Dockerbock and Hypervizen?

  • @MarcoGuardigli00
    @MarcoGuardigli00 Рік тому +2

    Please Tell me about your transparent blackboard technology and camera you use so efficiently! Thank you!

  • @simeonovs4443
    @simeonovs4443 Рік тому

    Great video

  • @Duniel88
    @Duniel88 Рік тому

    Docker emulates OS VM emulates HW

  • @franklemanschik4862
    @franklemanschik4862 Рік тому +2

    Little Update for you as Docker also Handels WASM, And is mostly only a qemu like abstraction over libcontainer, Docker has Virtual Hardware i can even do cpu instructions written in JS. So i guess you view it out of a single perspective. When i now Run RISC-V which is a CPU Design and so a Full System i Run Full System Emulation Something much lower then the Hypervisor. or a Virtual Machine Monitor. You should in general maybe update your knowledge with resources about RISC-V

  • @randomdaysy
    @randomdaysy Рік тому +45

    Any other home brewers just have their mind blown?

    • @davidf760
      @davidf760 Рік тому

      I'm so confused 😂

    • @MegaStamandster
      @MegaStamandster Рік тому +1

      I'm like "When are we going to start talking about brewing?"

    • @gabrieltruong9052
      @gabrieltruong9052 9 місяців тому

      I am not dreaming. This guy does everything

  • @TheCallumhutchy
    @TheCallumhutchy Рік тому +2

    Very confused when i saw the homebrew guy on an IBM thumbnail 😅

  • @mukunds3144
    @mukunds3144 6 місяців тому

    We can run diverse OS in containers also, right? Please correct if I am wrong.

  • @velo1337
    @velo1337 Рік тому +1

    VM is also nice if you need a GUI

  • @antoinemasselot5429
    @antoinemasselot5429 11 місяців тому

    Damn, scrolling UA-cam and encountering the beer guy on a VM vs Docker video!! 😂

  • @ErikS-
    @ErikS- 10 місяців тому +1

    I watched several videos on "VM vs containers".
    And practically each video explains it differently, which shows/causes confusion.

  • @jeremyfinger843
    @jeremyfinger843 11 місяців тому

    What does he use to do the writing that shows on the video?? Hardware and software???

  • @MegaStamandster
    @MegaStamandster Рік тому

    Used to this guy talking about brewing beer :)

  • @akashsivasubramanian4067
    @akashsivasubramanian4067 Рік тому

    on time.😀😀

  • @FrancescoVarrato
    @FrancescoVarrato Рік тому +2

    More and more dockers are seen as a way to make Research Data reproducible. Still, the fact that one can certainly reproduce a docker, the problem of reproducibility of scientific research data and code will then depend on how well dockers themselves will be reusable in the future. Also, this detracts from the efforts of using more interoperable formats and protocols. I'm really undecided on whether docker containers are really a good or bad solution for reproducibility.

  • @JorgetePanete
    @JorgetePanete Рік тому

    Can you transform what you write into a standard, readable font?

    • @GaryL3803
      @GaryL3803 Рік тому

      Use close captioning (CC).

  • @ok24140
    @ok24140 Рік тому +1

    How did you learn to write mirror inversed?

  • @markc6714
    @markc6714 11 місяців тому

    Mum taught me about number 1s and number 2s. I can only assume number 3s is both at once 😮😅😊

  • @yourmamaisphat
    @yourmamaisphat Рік тому +1

    Why is no one talking about how he is writing backwards on the board flawlessly!! 🤯

    • @continental_drift
      @continental_drift Рік тому

      He's not writing backwards.
      Search on "lightboard videos"

    • @canozmen
      @canozmen Рік тому

      Well because the video is mirrored

    • @IBMTechnology
      @IBMTechnology  11 місяців тому +1

      See ibm.biz/write-backwards

    • @canozmen
      @canozmen 11 місяців тому

      @@IBMTechnology hahah

    • @yourmamaisphat
      @yourmamaisphat 11 місяців тому

      @@IBMTechnology Wow, that's a great breakdown video! Also, had me fooled! haha.

  • @MrEndzo
    @MrEndzo Рік тому +1

    I have docker running on a VM.

  • @severalpens
    @severalpens 11 місяців тому

    With the exception of legacy or patching, I don't get why people are bothering to learn either. As of today you can talk to Microsoft AI Builder to build a Power App. In a few years Docker etc will all be under the hood technology managed by AI and the skills learned will be as useful as COBOL.

  • @dallasphillips91
    @dallasphillips91 Рік тому +2

    This dude makes beer in England, what in the world is he doing here!?!?! @TheHomebrewChallenge

  • @meinlet5103
    @meinlet5103 Рік тому

    Ive installed docker recently and when I run bash script, it's significantly slower than command line.. how strange

    • @tablettablete186
      @tablettablete186 Рік тому

      Usually the 2 things that make containers slower:
      1. SECCOMP: it intercepts syscalls and only allow a few
      2. FUSE like filesystems: yeah, layered filesystems are slower
      Note: if you are not using Linux as the host, Docker spins up a Linux VM with might add more overhead

  • @jaxxonbalboa3243
    @jaxxonbalboa3243 Рік тому

    Why doesn't Win 11 run Oracle's VM?

  • @jrdn5206
    @jrdn5206 Рік тому +2

    This isn’t about brewing beer…..

  • @GoatZilla
    @GoatZilla 11 місяців тому

    Is this docking?

  • @BrooksOSteen
    @BrooksOSteen 4 місяці тому

    HOW IS HE WRITING BACKWARDS?

  • @joshuadadula-fy5kn
    @joshuadadula-fy5kn Місяць тому

    Try video explaining things vs ai explaining things

  • @Mark_Wood
    @Mark_Wood Рік тому

    shouldn't you be brewing?

  • @saadfazelpour5385
    @saadfazelpour5385 Рік тому +2

    he gave a lot of information but he didn't explain the most important questions.

    • @raff1584
      @raff1584 Рік тому +1

      the most important question is how did he write backwards

    • @ChristianWaagaard
      @ChristianWaagaard 8 місяців тому

      ​@@raff1584miror/flip video in edit...

  • @JeremyRefoia
    @JeremyRefoia Рік тому

    cool

  • @tyrojames9937
    @tyrojames9937 Рік тому

    COOL. THEY ARE ADVERSARIES❗😁😁

  • @Netryon
    @Netryon Рік тому

    It's a choice to buy subscription or to use free to play model. Government helps local business and builds all other services around it. Reason why you need Docker in this case, you aren't able to pay for games, which require monthly or yearly fee or must be bought as stand alone package and politicians are shooting her mouth about it. All of that is a problem after paying all bills dreaming about gardening things to have someday. First time for virtualization was sometime ago preparing for Lab 1 experiment, learning basics and after it never needed it.

  • @ogawasanjuro
    @ogawasanjuro Рік тому

    How is he writing backwards?

  • @kklowd
    @kklowd Рік тому

    This guy is so handsome

  • @ShivaTD420
    @ShivaTD420 Рік тому

    Are you actually writting backwards or is there a clever trick happening here

  • @vapourmile
    @vapourmile 11 місяців тому

    All I know about Docker is it's just hugely resource hungry and slow and on top of that I can't think of a single application I'd use it for which I can't just download and run without it. There has been a huge amount of publicity behind Docker and Kubernetes and I just can't find a use for either of them.
    What I need is not a "how does it work" video it's a "Who actually uses this and why?" video.

    • @cleverbobby
      @cleverbobby 29 днів тому

      Seriously? I spent six months getting a Rails app running on a production server.
      After discovering Docker, it was ten times easier. It's very well suited for the production environment.

  • @joh551
    @joh551 6 місяців тому

    What kind of magic is used for the writing during presentation, or does everyone but me know how to write backwards? LOL

  • @lewiskelly14
    @lewiskelly14 Рік тому

    VMs are SO MUCH EASIER

  • @AFuller2020
    @AFuller2020 Рік тому

    The problem is Windows as a totally unreliable platform, Linux with VM is the way we go.

  • @oiraqih
    @oiraqih Рік тому +1

    The question is wrongly asked, comparing 🍎 s and 🍊 s
    You can compare VMs to containers. You can compare VMMs to container runtimes. You can compare VMware, KVM, and XEN to Docker.

  • @alib5503
    @alib5503 Рік тому

    What exact accent is this?

  • @cfwin1776
    @cfwin1776 Рік тому

    Apple vs orange 😂

  • @sengs.4838
    @sengs.4838 Рік тому

    Is this guy seriously write letters in reverse direction like in a mirror ? How ? 😮

  • @christopherpetersen342
    @christopherpetersen342 9 місяців тому

    Heavy sigh... A generic term on the left and a concrete implementation on the right. An IBM video is blowing off AIX WPARs (also containers) completely? I get not mentioning Solaris zones, but really? And, zero mention of docker as a (generally) 1 by 1 container technology that often needs an extra/external orchestration layer to manage more complex stuff? Some good info but not treating the subject as I might hope to see an intro on youtube...

  • @RamKumar-kv1fx
    @RamKumar-kv1fx Рік тому +1

    A very poor comparison, one can barely call it a comparison. Although he explains stuff, there is no clear distinction or differentiation from one another but just a mere list of points that summarises what is VM & what is docker.

    • @schmud143
      @schmud143 Рік тому

      that’s exactly what a comparison is

  • @enricosacchetti8350
    @enricosacchetti8350 Рік тому +1

    Rule of thumb: VM always works, Docker is a pain in the a

  • @jamescapparell5673
    @jamescapparell5673 6 місяців тому

    Decent explanation but if you're are going to bother to scribble on a board then at least try to be legible. Pointless if no one can read it.

  • @iAPX432
    @iAPX432 Рік тому

    Utterly false, in many cases Docker use Hypervisor and VM (it's platform dependent) with it's own H/W emulation and guest OS, and also H/W (CPU) emulation when needed through QEmu.
    So bad!