Virtual Machine (VM) vs Docker

Sdílet
Vložit
  • čas přidán 17. 04. 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

Komentáře • 119

  • @summatim
    @summatim Před rokem +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

  • @WarpRulez
    @WarpRulez Před rokem +30

    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.

    • @itsathejoey
      @itsathejoey Před rokem +2

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

    • @fabiandrinksmilk6205
      @fabiandrinksmilk6205 Před rokem +3

      This is where Podman comes into play.

    • @markc6714
      @markc6714 Před rokem

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

  • @Felttipfuzzywuzzyflyguy
    @Felttipfuzzywuzzyflyguy Před rokem +52

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

  • @dikieaditya1321
    @dikieaditya1321 Před rokem +17

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

    • @p33yush
      @p33yush Před rokem

      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 Před rokem +7

      This is how Docker works in Mac/Windows.

    • @foodie3140
      @foodie3140 Před rokem

      Yes you can

    • @magicball60
      @magicball60 Před rokem +2

      It’s actually a common practice

    • @schmud143
      @schmud143 Před rokem

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

  • @michaelcharlesthearchangel

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

    • @hedgefundsrus
      @hedgefundsrus Před rokem

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

    • @shafayet5689
      @shafayet5689 Před 7 měsíci

      ​@@hedgefundsrusyep tbh thats what I also feel

  • @siraz6899
    @siraz6899 Před rokem +6

    These tutorials series are really good

  • @Flankymanga
    @Flankymanga Před rokem +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.

  • @neail5466
    @neail5466 Před rokem +5

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

  • @Gutenmorgenside
    @Gutenmorgenside Před rokem +5

    The master brewer doing his day job.

  • @bizmarinainfo1808
    @bizmarinainfo1808 Před rokem +4

    Neat and sweet. Thank you for the easy explanation.

  • @Z9036
    @Z9036 Před rokem +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 Před rokem +7

      My guess is they flip the whole video horizontally

    • @patrick1038
      @patrick1038 Před rokem +1

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

  • @Duniel88
    @Duniel88 Před rokem

    Docker emulates OS VM emulates HW

  • @severtone263
    @severtone263 Před 3 měsíci

    Great informative explanation. Thank you

  • @randomdaysy
    @randomdaysy Před rokem +46

    Any other home brewers just have their mind blown?

  • @FuzzerHash
    @FuzzerHash Před rokem +1

    Excelente explanation, that's so clear.

  • @alanjrobertson
    @alanjrobertson Před rokem +2

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

  • @hugofullante3758
    @hugofullante3758 Před rokem

    Thank you for clear explanation

  • @TinnyHidge
    @TinnyHidge Před rokem +1

    Great explanation. Cheers! 👍

  • @veritasliberabitvos454
    @veritasliberabitvos454 Před rokem +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.

  • @Shadab-px2vn
    @Shadab-px2vn Před měsícem

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

  • @santanuhajra6485
    @santanuhajra6485 Před rokem

    Fantastic explanation sir !!!

  • @jaffarbh
    @jaffarbh Před rokem +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 ;-)

  • @Spudgun81
    @Spudgun81 Před rokem +1

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

  • @Hiram8866
    @Hiram8866 Před rokem +8

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

  • @harshulrohilla1868
    @harshulrohilla1868 Před 3 měsíci

    GREAT LECTURE THANX TONI KROOS😊

  • @thegreatestadvice88
    @thegreatestadvice88 Před rokem

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

  • @hpandeymail
    @hpandeymail Před rokem

    Wow .. great lecture 🙏👏

  • @tannerkinsey
    @tannerkinsey Před 2 měsíci

    Far from homebrew… great lecture!

  • @vultureTX001
    @vultureTX001 Před rokem +2

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

  • @aouss.altwaijry
    @aouss.altwaijry Před rokem +1

    Great material.

  • @Bultizar
    @Bultizar Před rokem +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

  • @MinorMood
    @MinorMood Před rokem +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....

  • @csanvi
    @csanvi Před 11 měsíci

    Thank you Martin.

  • @larryryba4497
    @larryryba4497 Před rokem +2

    Can we get recipe videos for Dockerbock and Hypervizen?

  • @BringMe_Back
    @BringMe_Back Před rokem +1

    thanks a lot 👍😊

  • @MarcoGuardigli00
    @MarcoGuardigli00 Před rokem +2

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

  • @simeonovs4443
    @simeonovs4443 Před rokem

    Great video

  • @TheCallumhutchy
    @TheCallumhutchy Před rokem +2

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

  • @fajarsumiratbinmuhrip3426

    Which one does the AWS cloud services use, VMs or Dockers...?

  • @rikoari
    @rikoari Před rokem +1

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

  • @mukunds3144
    @mukunds3144 Před 6 měsíci

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

  • @yourmamaisphat
    @yourmamaisphat Před rokem +1

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

    • @continental_drift
      @continental_drift Před rokem

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

    • @canozmen
      @canozmen Před rokem

      Well because the video is mirrored

    • @IBMTechnology
      @IBMTechnology  Před rokem +1

      See ibm.biz/write-backwards

    • @canozmen
      @canozmen Před rokem

      @@IBMTechnology hahah

    • @yourmamaisphat
      @yourmamaisphat Před rokem

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

  • @dallasphillips91
    @dallasphillips91 Před rokem +2

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

  • @jeremyfinger843
    @jeremyfinger843 Před rokem

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

  • @velo1337
    @velo1337 Před rokem +1

    VM is also nice if you need a GUI

  • @MegaStamandster
    @MegaStamandster Před rokem

    Used to this guy talking about brewing beer :)

  • @antoinemasselot5429
    @antoinemasselot5429 Před rokem

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

  • @franklemanschik4862
    @franklemanschik4862 Před rokem +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

  • @ErikS-
    @ErikS- Před 11 měsíci +1

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

  • @akashsivasubramanian4067

    on time.😀😀

  • @ok24140
    @ok24140 Před rokem +1

    How did you learn to write mirror inversed?

  • @BrooksOSteen
    @BrooksOSteen Před 5 měsíci +1

    HOW IS HE WRITING BACKWARDS?

  • @jrdn5206
    @jrdn5206 Před rokem +2

    This isn’t about brewing beer…..

  • @JorgetePanete
    @JorgetePanete Před rokem

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

    • @GaryL3803
      @GaryL3803 Před rokem

      Use close captioning (CC).

  • @markc6714
    @markc6714 Před rokem

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

  • @MrEndzo
    @MrEndzo Před rokem +1

    I have docker running on a VM.

  • @CarlosGonzalez-hy8in
    @CarlosGonzalez-hy8in Před 18 dny

    I couldn't pay attention to the video, because I was trying to understand how you can write backwards 😅

  • @meinlet5103
    @meinlet5103 Před rokem

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

    • @tablettablete186
      @tablettablete186 Před rokem

      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

  • @BriefNerdOriginal
    @BriefNerdOriginal Před rokem +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.

  • @severalpens
    @severalpens Před rokem

    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.

  • @jaxxonbalboa3243
    @jaxxonbalboa3243 Před rokem

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

  •  Před rokem

    cool

  • @GoatZilla
    @GoatZilla Před rokem

    Is this docking?

  • @joshuadadula-fy5kn
    @joshuadadula-fy5kn Před měsícem

    Try video explaining things vs ai explaining things

  • @saadfazelpour5385
    @saadfazelpour5385 Před rokem +2

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

    • @raff1584
      @raff1584 Před rokem +1

      the most important question is how did he write backwards

    • @ChristianWaagaard
      @ChristianWaagaard Před 9 měsíci

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

  • @Mark_Wood
    @Mark_Wood Před rokem

    shouldn't you be brewing?

  • @tyrojames9937
    @tyrojames9937 Před rokem

    COOL. THEY ARE ADVERSARIES❗😁😁

  • @ogawasanjuro
    @ogawasanjuro Před rokem

    How is he writing backwards?

  • @kklowd
    @kklowd Před rokem

    This guy is so handsome

  • @ShivaTD420
    @ShivaTD420 Před rokem

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

  • @lewiskelly14
    @lewiskelly14 Před rokem

    VMs are SO MUCH EASIER

  • @Netryon
    @Netryon Před rokem

    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.

  • @joh551
    @joh551 Před 7 měsíci

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

  • @AFuller2020
    @AFuller2020 Před rokem

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

  • @alib5503
    @alib5503 Před rokem

    What exact accent is this?

  • @cfwin1776
    @cfwin1776 Před rokem

    Apple vs orange 😂

  • @vapourmile
    @vapourmile Před rokem

    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 Před měsícem

      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.

  • @sengs.4838
    @sengs.4838 Před rokem

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

  • @oiraqih
    @oiraqih Před rokem +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.

  • @christopherpetersen342
    @christopherpetersen342 Před 10 měsíci

    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 Před rokem +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 Před rokem

      that’s exactly what a comparison is

  • @jamescapparell5673
    @jamescapparell5673 Před 7 měsíci

    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.

  • @enricosacchetti8350
    @enricosacchetti8350 Před rokem +1

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

  • @iAPX432
    @iAPX432 Před rokem

    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!

  • @twessels1234
    @twessels1234 Před 12 dny

    too verbose, no point, too long, get lost