Doing Docker? Don’t waste you money 💰

แชร์
ฝัง
  • เผยแพร่เมื่อ 7 ก.ย. 2024
  • So far it's been pretty close between the M1 Max MacBook Pro and the 2022 Dell XPS 15 with an Intel Core i9 12900KF (Alder Lake), but in this Docker test, we've got a clear winner.
    Monitor fans and temp on Mac: www.tunabellys... (affiliate)
    ▶️ The right way to Docker with Kris - • Docker mistakes correc...
    ▶️ Setting up new M2 MacBook for my software development - • Setting up new MacBook...
    ▶️ M1 Ultra vs Intel Core i9 Python Test DESKTOPs - • M1 Ultra vs Intel Core...
    ▶️ M1 MacBook vs Intel i9 MacBook Python Test - • M1 MacBook vs Intel i9...
    ▶️ C++ Sorting 1000000 Items - • M1 MacBook Air vs Inte...
    ▶️ Open CV - • OpenCV Build SLOW? Mak...
    #m1 #m1vsintel #xps15
    💻NativeScript training courses - nativescriptin...
    (Take 15% off any premium NativeScript course by using the coupon code YT2020)
    👕👚iScriptNative Gear - nuvio.us/isn
    - - - - - - - - -
    ❤️ SUBSCRIBE TO MY TH-cam CHANNEL 📺
    Click here to subscribe: / alexanderziskind
    - - - - - - - - -
    🏫 FREE COURSES
    NativeScript Core Getting Started Guide (Free Course) - nativescriptin...
    NativeScript with Angular Getting Started Guide (Free Course) - nativescriptin...
    Upgrading Cordova Applications to NativeScript (Free Course) - nativescriptin...
    - - - - - - - - -
    📱LET'S CONNECT ON SOCIAL MEDIA
    ALEX ON TWITTER: / digitalix
    NATIVESCRIPTING ON TWITTER: / nativescripting

ความคิดเห็น • 74

  • @aurelle2511
    @aurelle2511 2 ปีที่แล้ว +55

    Not surprising at all, docker needing a linux environment it uses a VM internally to run on MacOS, which explains why it's way slower compared to a bare bones linux install where docker directly makes use of the host kernel

    • @MachielGroeneveld
      @MachielGroeneveld 2 ปีที่แล้ว +1

      I wonder what VM that is configured like. Sometimes using VirtualBox as host VM helps

    • @0xc0ffee_
      @0xc0ffee_ 2 ปีที่แล้ว +1

      As far as I understood when you install docker desktop, it will use a VM even on native linux

    • @casperes0912
      @casperes0912 2 ปีที่แล้ว

      @@MachielGroeneveld It uses HVF on macOS - The Hypervisor Framework. Probably through QEMU's -acel vhf but not sure

    • @jonathanschober1032
      @jonathanschober1032 2 ปีที่แล้ว +1

      @@0xc0ffee_ don’t install docker desktop then. Just install docker CE itself. There’s zero benefit of adding a VM on Linux and it’s usually never done

    • @jonathanschober1032
      @jonathanschober1032 2 ปีที่แล้ว

      @@casperes0912 I believe it is using QEMU and it’s also by default emulating x86

  • @noeldillabough
    @noeldillabough 2 ปีที่แล้ว +7

    Just picked up a 12th gen i9 Lenovo; good to hear it's not bad! I've only ran docker on my mac, best thing for docker is RAM lots of it :) WSL2 on Windows is pretty sweet best of both worlds for some coders.

  • @ansel111
    @ansel111 2 ปีที่แล้ว +18

    The output looks different because on the Mac, docker build is using BuildKit, the new builder backend. The older build backend is being used on Linux. Not sure why. You can enable or disable BuildKit explicitly with an env var.
    Also, not sure if that Linux is a VM, or on bare metal? If on bare metal, it should have an advantage. All docker operations on Mac are Windows are really happening inside a virtual machine, so there is an extra layer of virtualization. Would also be interesting to see how you have configured the resources allocated to Docker for Mac. By default, its running docker in a VM which doesn't have access to all your cores or memory. Not sure how parallel node builds are, so I don't know how big a difference that would make.

    • @Watchandlearn91
      @Watchandlearn91 2 ปีที่แล้ว

      Came here to say exactly what your second paragraph says although I did not know that about using the new BuildKit - interesting that Linux wouldn't get the new one first.

    • @ansel111
      @ansel111 2 ปีที่แล้ว

      @@Watchandlearn91 I'm not sure how he installed and configured docker on linux. On Mac, he's probably using Docker for Mac, which installs and pre-configures a bunch of stuff. It's probably configured to use BuildKit by default now. On Linux, you can install Docker for Linux, which is a big installer that includes several packages and is probably pre-configured the same way as Docker for Mac. Or you can individually install the packages through your distro's package manager, and they are probably more conservatively configured.

  • @GlennFaulkner
    @GlennFaulkner 2 ปีที่แล้ว +16

    Would be interesting to see the comparison between the bare metal Ubuntu Vs Ubuntu on WSL2

    • @KwanLowe
      @KwanLowe 2 ปีที่แล้ว +1

      I've run podman on identical hardware on Windows WSL2 and Linux Mint. The Linux build generally runs faster by about 5%. To me this is pretty impressive that it's so close. It appears that the gap is mainly in filesystem access. It's close enough in my builds that I don't notice it unless I time things.

  • @christianbaer2897
    @christianbaer2897 2 ปีที่แล้ว +8

    Not very surprising. The Docker installation for Mac is spinning up a VM in the background. So you have a (probably Linux for ARM) VM running that is operating on the M1 Chip. There has to be some losses there.
    I would be interested in the same test on Asahi Linux. I have no idea what the result would be.

  • @steveoc64
    @steveoc64 2 ปีที่แล้ว +2

    This has been a good series over the last year or so - trying to get a good docker dev exp on a range of workstations.
    Im pretty convinced, after following this from beginning to end ... that the best way to do this is pretty simple :
    1 - Build a cheap-ass Linux box with a pile of cheap SSD and lots of cheap RAM. Stick docker-ce on there, and use that to host all your docker builds and running apps, and Kubernetes even if you are into that.
    2 - Buy the workstation / laptop that you really love (ie - a good Mac), but dont spend any $AppleTax on maxxing out the RAM or Disk, because you are going to be offloading work to the docker server on your LAN
    Price comes out about the same, and you get the advantage (?) of having a dev setup that is a bit closer to your prod setup. The $$ you would spend on upping RAM and SSD in a Mac is about the same $$ as building a cheap ass linux box as a dedicated docker server.
    Using that logic, I can justify buying a base model Mac Studio + Studio Display as my workstation, because Im only using it as a really really nice way to edit code, and keep on top of the usual officey stuff - emails / jira / word docs / video calls, etc

  • @tommornini2470
    @tommornini2470 2 ปีที่แล้ว +4

    Willing to bet the node image is Intel based…

  • @denisfok1699
    @denisfok1699 2 ปีที่แล้ว +8

    I think if there is a native Linux for M1 Max, the test will be interesting..

    • @droit19
      @droit19 2 ปีที่แล้ว

      Agreed! Asahi Linux on Mac vs Ubuntu on Dell would be a great comparison!

  • @LucianPantea
    @LucianPantea 2 ปีที่แล้ว +4

    Enabling - Use the new Virtualization framework & Enable VirtioFS accelerated directory sharing from docker desktop I got 12s vs 17s on my m1 max.

  • @soft2design
    @soft2design 2 ปีที่แล้ว +2

    Let's try the --no-cache flag in both laptops. This will avoid caching.
    docker build -t [any-name] --no-cache .

  • @Frank2tek
    @Frank2tek 2 ปีที่แล้ว +17

    Hey Alex, I told you 🙂🙂
    Can you do the same test on Windows and on the M2 machine ?

  • @JohnnySouto
    @JohnnySouto 2 ปีที่แล้ว +1

    3:37 Intel 11 steps = 12.7sec, Apple 16 steps = 16.5sec. Great Job! [ironic mode = on]

  • @pdn9609
    @pdn9609 2 ปีที่แล้ว +3

    As others have said already, docker on mac uses a virtual machine and possibly binary x86 translation (though I am not sure about this). So basically you compared apples to oranges.

    • @Lascarnn
      @Lascarnn ปีที่แล้ว

      Still this test can be very useful. For example for me, I wasn't sure what to buy for web development using multiple docker containers - PC (for Linux) or Mac M1/2. Now I know. If it's not useful for you, just don't watch :) Peace

  • @IvanKlishch
    @IvanKlishch 2 ปีที่แล้ว +2

    I noticed XPS was connected to a power supply while Mac was running on battery. It would be better to test both connected to a power supply

    • @AZisk
      @AZisk  2 ปีที่แล้ว +5

      Pc needs to be plugged in to provide full power to cpu, mac doesn’t.

  • @alanmcdade2459
    @alanmcdade2459 2 ปีที่แล้ว +2

    Maybe try it with Linux on the Mac, unless you are trying to compare Linux vrs MacOS

  • @fos016
    @fos016 2 ปีที่แล้ว +2

    Linux is a must for working in the container world. The results doesnt surprise me.

  • @pierrepr1
    @pierrepr1 2 ปีที่แล้ว +1

    I’m not an Apple fanboy. But that’s not a fair comparison. Docker is not virtualized on Linux machines. You should try Linux on the Mac as well or at least compare i9 Windows vs Mac M1.

  • @romanretiunsky9732
    @romanretiunsky9732 ปีที่แล้ว

    Alex, your work is amazing.
    Please, could you add to the comparison the early models of laptops on the Intel platform, with 4 and 6 core processors 6820hq..8300h(8750..9850h)
    Dell latitude 54-5590(91) has two RAM slots, you can check the effect of 8-32GB memory on the build speed of the compose
    This would be a great exploration of the evolution of intel in docker

  • @javacome2090
    @javacome2090 2 ปีที่แล้ว +1

    Asahi linux on M1 Air was about 15 seconds

  • @realgreencookie
    @realgreencookie ปีที่แล้ว

    32s on my 15" 2018 MBP (2.6 GHz 6-Core Intel Core i7).

  • @AmfistomosAtlas
    @AmfistomosAtlas 2 ปีที่แล้ว +2

    I've built a Schwarzenegger thumb just to hit the like button. Nice one!

  • @SheldonHull
    @SheldonHull ปีที่แล้ว +1

    Subscribed as soon as I saw the board with fingers. That deserves a sub😆

  •  2 ปีที่แล้ว +3

    I told you!

  • @joecincotta5805
    @joecincotta5805 2 ปีที่แล้ว +1

    Are you running docker arm native? Otherwise it's not really a comparison.

  • @hillidk
    @hillidk 2 ปีที่แล้ว

    You have found the filesystem issue with Docker on not-Linux - Issue beeing FS acces is quiet a bit slower. Make sure to have at least the VirtioFS experimental flags turned on on the Mac.
    Calling it an win for Intel is a bit of a strech...

  • @stevenswall
    @stevenswall 2 ปีที่แล้ว +3

    Can you set both to loop through that task and test the battery life?
    Seems most chips are cranking up power usage to get faster

    • @bias69
      @bias69 2 ปีที่แล้ว +3

      That's good, you don't buy fast CPU to save battery life.

    • @stevenswall
      @stevenswall 2 ปีที่แล้ว +3

      @@bias69 I bought the M1 Max MacBook Pro for exactly that reason.

    • @bias69
      @bias69 2 ปีที่แล้ว

      @@stevenswall Seems it's not that fast after all.

    • @stevenswall
      @stevenswall 2 ปีที่แล้ว +1

      @@bias69 Just because something going on a year old isn't as fast for one task when compared to a newer thing doesn't mean the M1 Max isn't fast.

    • @stevenswall
      @stevenswall 2 ปีที่แล้ว

      @@bias69 Seems like you're just arguing to argue though.
      I'm really only interested if you have experience with $5000 laptops and can suggest something that is very fast and very efficient, with an excellent keyboard and matte display.
      The dell lacks great battery life and an excellent keyboard. The Mac lacks an excellent keyboard and a matte display.

  • @kingpauloaquino
    @kingpauloaquino 2 ปีที่แล้ว

    Docker is fast with Linux os. However, docker on Mac and Windows is slow.
    Try to install Linux on MAC Pro (haha). So, both your machines are using the same OS. Then try to test it again

  • @SunsetNova
    @SunsetNova 2 ปีที่แล้ว +2

    I told you Alex 😁

  • @celestar5148
    @celestar5148 2 ปีที่แล้ว +3

    Linux is the best option to run docker.

  • @brandonw7390
    @brandonw7390 2 ปีที่แล้ว +2

    Your videos are making me want to forget about the crap Dell service and QA

  • @Rubacava_
    @Rubacava_ 2 ปีที่แล้ว +1

    Is VirtioFS enabled for Mac?

  • @cbayonag
    @cbayonag 2 ปีที่แล้ว +1

    Can you tell me if the docker build were deployed on arm64 or x86 on Mac? Because I’m having issues with building images on the Mac

  • @robchr
    @robchr 2 ปีที่แล้ว +1

    I told you Alex, I told you many times!

  • @quelchx
    @quelchx 2 ปีที่แล้ว

    I love my m1 but I find it kind of lagging a bit with my developer work flow and here I am looking into a lg gram or something similar to get me by... and I by no means am a windows machine kind of dude. Sad days.

  • @ryanrocksize5
    @ryanrocksize5 2 ปีที่แล้ว

    The need of always having to be plugged into the wall on the i9 laptop is the main reason I sold off my Gigabyte Aorus 5 SE4 with a i7-12700h for a base model 16 inch Macbook M1 Pro, I just can't promise myself that I will always be near a wall outlet when I'm out and about.
    Great comparison btw, it definitely highlights the differences clearly.

  • @thorstenfricke3257
    @thorstenfricke3257 ปีที่แล้ว

    how is the power consumption of both laptops? is the linux dell getting hot bec windows has a better power management?

  • @Billy123bobzzz
    @Billy123bobzzz 2 ปีที่แล้ว

    It's not useful if it snot tested on Battery Power, because we buy laptops to use them on Battery Power.

  • @jedinojapan
    @jedinojapan ปีที่แล้ว

    Docker is not only slow on new mac but also on intel mac gen. I don't know why every tech still use docker on mac...

  • @Franco-on7yw
    @Franco-on7yw 2 ปีที่แล้ว +3

    Dell is the worst brand ever!!!! I bought a XPS 15 and use it twice and it start with screen issues and I couldn’t use it again. Pure trash, the first and the last I bought on my entire life.

  • @garydmercer
    @garydmercer 2 ปีที่แล้ว

    Docker optimized for running on a windoze machine. Oh the horror. LOL

  • @webproximity5385
    @webproximity5385 2 ปีที่แล้ว

    Flawless victory for Linux!!!

  • @georgepeppas
    @georgepeppas 2 ปีที่แล้ว

    Any experience with the xps running Linux? Does it work flawlessly? I'm afraid buying a pc and adding Linux because of many inconsistencies and poor battery. But adding ram to mac is SO expensive, unbelievable. My heart tells me to buy xps 12900 64ram Linux. My reason, buy Mac 14 m1 pro 32ram 😀

    • @JahidulIslam
      @JahidulIslam 2 ปีที่แล้ว +1

      Dell XPS series tends to come with Ubuntu pre-installed. New XPS 13 and 13 plus is available with Ubuntu 22.04 in the US site. Dell XPS will probably come with Ubuntu pre-installed later down the road.

    • @somebrains5431
      @somebrains5431 2 ปีที่แล้ว

      Go get an HP Dev One if dealing with basic local hardware is an issue. Otherwise any Dell Precision or HP Fury recent enough to run 4x nvme drives + 128gb of ram is the go to. $1200-$2k right now, upgrade it yourself.

  • @ThomazMartinez
    @ThomazMartinez 2 ปีที่แล้ว

    Could you get Linux on Mac installed and try again?

  • @thelastshareholder
    @thelastshareholder 2 ปีที่แล้ว

    “dockerized”

  • @lowkeygaming4716
    @lowkeygaming4716 2 ปีที่แล้ว +1

    Linux is indeed 🥰

  • @andrewgrant788
    @andrewgrant788 2 ปีที่แล้ว

    Not really a fair comparison since Docker is a linux native technology and with MacOS a VM is required. The other issue is the image you were building. Many Docker images are still X86-64. I am not sure if your image is but that is something you should cover in a follow up video since it could have a significant performance impact.

  • @Euryanassa
    @Euryanassa 2 ปีที่แล้ว

    Just buy a macbook air and connect cloud services with it 😂

  • @danieldanish2453
    @danieldanish2453 2 ปีที่แล้ว +1

    hi

  • @narendranath1006
    @narendranath1006 หลายเดือนก่อน

    i can do dual boot and have best of 2 worlds. Not in the case of mac LOL