7 ms·
Curious on how Docker runs on M1, it's well known for being an horrendously slow piece of software on Apple computers, draining battery life like crazy. Any fee
by Zealotux 6y ago
Curious on how Docker runs on M1, it's well known for being an horrendously slow piece of software on Apple computers, draining battery life like crazy. Any feedback on M1 Docker so far?
- cies 6y agoNeeding to use Docker is a great reason Linux on the developer laptop makes total sense. > horrendously slow piece of software on Apple computers, draining battery life like crazy Exactly. Thankfully there is Docker on Mac: how would my colleagues with shiny laptops get work done otherwise?
- adamors 6y agoThe problem with Linux on the Desktop is that it's still a horrible, time-wasting experience. I have to unplug/replug my mouse every time I boot into Ubuntu because it's not recognised otherwise. Another wired mouse I have is not recognised at all (was working just fine during install). As somebody who works 8+ hours a day, I don't have time for this shit.
- noir_lord 6y ago> The problem with Linux on the Desktop is that it's still a horrible, time-wasting experience. In your experience - that's not uniformly true - I'm a counter example - I installed Fedora on this machine when I built it a few years ago (and have upgraded to each release) and have had zero hardware issues and that's running an RTX2080 with the binary driver (historically a pain point on Linux). As someone who also uses a recent generation work issued mac the different for me is stark.
- adamors 6y agoI'm well aware my experience is not uniformly true. My point is, that an inconsistent experience is not something I have time to debug anymore. I ran Arch 10+ years ago when I had more time than sense, but those days are long gone. I'd rather spend my non-work time AFK.
- danieldk 6y agoI have a Ryzen 3700X desktop and have literally zero hardware issues with NixOS and Fedora. The Intel NUC8i5 I had before that also worked flawlessly. I also purchased a ThinkPad T14 AMD. It works fine with Linux and all the hardware works out of the box (including the fingerprint reader, WiFi and webcam). Additional benefit: upgraded it from 16GB to 32GB for under 100 Euro. I used Macs from 2007 until 2020. But in my daily work, I have experienced far more issues with macOS than with Linux in recent years (I was a very happy Mac user from 2007 to ~2015).
- arvinsim 6y agoI installed Pop!_OS on my gaming PC. Didn't have to do any fiddling at all. I was so impressed by it that it has replaced my Mac laptop as a development machine at home.
- guggle 6y agoI'd argue that the experience is significantly worse on laptops than desktops where it has been more or less fine.
- tirrex 6y agoI hated linux desktops, it was unusable for me. I gave a try again 3 years ago, since then, no issues, it’s been super smooth for me. I used 5-6 laptops along three years, I’m still surprised it’s that good. I use stock ubuntu. Maybe I’m just lucky that I picked laptops/hardware which work smoothly on linux/ubuntu
- f6v 6y ago> Needing to use Docker is a great reason Linux on the developer laptop makes total sense. So do you always run the same server distribution with exactly the same package versions on your laptop? Otherwise, you miss the point of Docker.
- ubercow13 6y agoThat’s not the point. Docker is native to Linux, it is much faster and simpler on Linux where it does not have to use virtualisation.
- coldtea 6y ago>where it does not have to use virtualisation You'd be surprised.
- hibbelig 6y agoThey are saying that they need to run Docker precisely because they need different package versions. Given that Docker is required, Linux is attractive because then you can run Docker without running a Linux VM.
- pjmlp 6y agoWindows has native containers, and I bet the Docker GUI will eventually become a thing of the past. No, I don't use WSL, and still get work done.
- coldtea 6y ago>Thankfully there is Docker on Mac: how would my colleagues with shiny laptops get work done otherwise? This "shiny/for the clueless" Linux-edgelord meme must die. Might as well write "MS" with a dollar sign in 2021. Go to any programming conference and check the speakers. Over 50% use an Apple laptop. Check major developers people follow, from old Unix hands like Rob Pike, to every major JS cat, to admins, all the way to the creator of Gnome, Gnumeric and Mono, and their preferences, and you'll find they use a Mac laptop with macOS. (And hardware wise, even Linus Torvalds had an Apple G5 tower as his main driver, and later an Intel Macbook Air he praised as the best machine he had used (though he used Linux on those). In any case, there are benefits and tradeoffs, but "lol, Mac is teh suck" is inane. To correct you: no, Docker is not used because "you need to". It's used (also on Linux) for reproducability, isolation, the ability to write code with different dependencies with the whole system at your disposal, and to not mix your driver machine with your development environment. It is the same use if you run Linux distro X and deployed on another version of it, or on the same version with some tweeks/different libs, or to whole other distro. And no, it hasn't been a "horrendously slow piece of software on Apple computers, draining battery life like crazy" for ages, and when it was it wasn't because of some macOS limitation, but because the company had done a half-arsed job with the fs layer. And as far as "needing to use Docker", macOS is not any different than any Linux/FreeBSD distro on that front. If you prefer a local, mix-everything-in, not discliplined approach, unlike what Docker offers, you can install anything you like, from Brew, MacPorts, Fink and so on. You can even have Nix for reproducible builds under that scheme.
- cies 6y ago> because the company had done a half-arsed job with the fs layer Exactly. And I know Mac reigns in dev land. Just the moment Docker comes around (and it does quite a bit lately) all those shiny (and that's a compliment) pieces of hardware become heated vacuum cleaners. I'm not saying "lol, Mac is teh suck" (what you apparently want to read). I'm saying: here's something that my Linux laptop wins at. Docker. You come across rather angry, even saying that Linus uses Apple hardware without running the macOS... How does that work as an argument against my experience?
- 6y ago
- blunte 6y agoI have done and still do all my development on a Mac and deploy to Linux. I run 3-5 rails servers, redis, postgreql, mysql, jetbrains ides, slack, meet, spotify, vscode, and probably two or three other apps I forget now. I do all this on either my 2014 15” MBP i7 or my 2019 13” MBP i5. The only thing I lack is drive space. I have reinstalled my 2014 OS never, and I have a truckload of usb devices (mostly music production) attached. You simply cannot match that with a Linux laptop. I love Linux, but not for desktop use.
- dustinmoris 6y agoAs I said in a comment below, I've been using the preview version with M1 support for a while now and I have it constantly running in the background. I literally use Docker all the time, mostly building images locally to test/debug something or running things like Redis locally or nginx or something else during development and I have not had any issues so far. And the M1 still amazes me every day. I code all day long, watch youtube, listen music, do zoom and slack calls and so on and don't charge my MBP even once during the day. I once forgot to plug in my laptop in the evening and the next day I was surprised that by mid day my battery was down to 10% after working on it for 1.5 days without charging. That's when I realised how long it lasts and that I got used to not charge it like my iPads or phone. Also never gets hot and no fan noise yet.
- cageface 6y agoAre you using an 8GB or 16GB M1? My 8GB air has been fine for everything I've done with it so far but I'm wondering if Docker will be the first thing that needs more than 8GB.
- dustinmoris 6y ago13 inch, 16GB, M1 I swear by 13 inch but I know I'm in a minority. I don't need a huge screen for my work. I like to look at code without bending my neck left and right all day long and if I need to multi task I four finger swipe left or right and feel extremely productive this way for many years now :) EDIT: I shall say I had an 8GB intel MBP before and 8GB was just about enough for everything including Docker.
- cageface 6y agoI was using the 16" MBP before this but having gotten used to the 13" that now feels ridiculously huge. It helps that I'm not using XCode much though. That really wants a lot of screen real estate.
- lupire 6y ago> bending my neck left and right You can't see all of a 15" screen without bending your neck? You think 15" is a "huge" screen?
- jamil7 6y agoThe previews I've used work fine but a few images are not updated to work yet. My intel laptop died this month and forced me to use the M1 for all my development work (was previously using it for iOS only), I ended up setting up a remote ubuntu environment on a Hetzner box to do all my Docker work. It works great and I might end up keeping this setup.
- __oh_es 6y agoI’ve only had one issue where it crashed, but otherwise its been stable for my lightish use running compose with three ubuntu images. Battery life was still better than my i7 2015 mbp
- JofArnold 6y agoIt's been pretty fast since oxsfs was replaced with gRPR-fuse. Was in the beta builds for quite some time and now is switched on by default in 3.x. Idle CPU has been cut from about 100% down to about 20% also.
- kureikain 6y agoM1 Docker works and it rocks solid. I was skeptical at first but I upgraded to M1 because my old Air is too slow and I cannot open Chrome+Slack at a same time. Suprisingly I have no problem with docker. I just download the docker preview and it works flawlessly. One minior issue is that if I build a Docker image that support multi arch, then push to docker hub, then that image is arm64 by default. I have to do `docker build --platform amd64`. I document that process here: https://axcoto.com/notes/2021-03-13-docker-apple-m-nginx-and-standard-init-linux-go-exec-user-process-caused-exec-format-error-/ https://axcoto.com/notes/2021-03-13-docker-apple-m-nginx-and... I think that's the only gotcha I got so far.
- janlaureys 6y agoI'm running a bunch of Drupal sites in docker on a M1 macbook Air and it's running much much faster than docker for mac on the 2014 Macbook Pro I had before. The docker images we're using (wodby-drupal) only recently started supporting arm64 properly though so I had the new laptop a few weeks before it was actually usable but now I'm very happy. Haven't been able to run a php 5.3 container yet though for this one project that is pretty much on life support.
- coldtea 6y ago>Curious on how Docker runs on M1, it's well known for being an horrendously slow piece of software on Apple computers, draining battery life like crazy. No, it's not. Perhaps that's an old wives tale from the era (2-3 years ago) when it had bad fs performance and didn't use the native hypervisor directly?
- vetinari 6y agoRunning Docker on native Linux machine is vastly superior; the "old" TR1900X I have under the table is much more performant (for Docker) than M1 MBP on the table. But then, M1 MBP is 25W part and not 180W, it is also silent, unlike the TR. So pick your poison.
- ogre_codes 6y ago> Running Docker on native Linux machine is vastly superior I don't know about "Vastly", but it is better and will likely always be better because of the structure of Docker. Docker is by definition, a container that runs atop Linux. Since Linux is already Linux and the Mac has to run Linux in a hypervisor, bare metal Linux is almost always going to be faster. But, Docker is just a part of the workflow. Dealing with the limits of the Linux Desktop to get better Docker isn't worth it a lot of the time.
- vetinari 6y ago> Dealing with the limits of the Linux Desktop to get better Docker isn't worth it a lot of the time. That's just your personal preference; I'm using all three (macOS/Linux/Windows 10) and all three are fine for desktop.
- ogre_codes 6y agoAbsolutely. Should have been more clear it was preference.
- blakesterz 6y agoI guess I'm in the minority here, but I'd say it's slow. Not SLOW, but slow, compared to the Linux box I have right next to the Mini. It's tolerably, but I'd say starting up the app that I work on takes about twice as long on the mini, and it runs maybe 1/2 as fast? It's noticeable, but not so slow that I can't use it. Maybe this new release will speed things up for me. Nothing else is slow about the Mini, but Docker is noticeable slower.
- ogre_codes 6y agoSince Docker only runs on Linux, it's always going to be faster/ better on Linux. On the Mac you have to run Linux in a hypervisor, then run Docker on that instance. Things can get a better, but it's always going to be a bit of an alien.
- katsura 6y agoSome rare crashes here and there (before the RC, I haven't used the RC too much yet), some images don't work, some node packages require extra packages where the same image on linux worked without them. But after the initial hurdles of setting it up, it actually works pretty great for my use-case. I'm using it for 5 different projects 2-4 containers each. If you develop React and Typescript with VS Code remote though, you should definitely up the memory limits, because the initial 2 Gb was hit all the time (every 10-30 minutes), which made Docker crash on me every time. Once I set this higher, my experience improved tremendously. I only have to charge it once a day with 10-12 hours average daily use.
- ericpauley 6y agoIt's phenomenal. I use an M1 Air to develop a webapp with Rails + multiple independent large Webpack builds (Make sure your `node_modules` and other speed-sensitive folders are all in named volumes not bind mounts). It is insanely fast compared to my 2017 15", and battery can last all day even when using Docker, something unheard of on my last laptop.
- ginja 6y agoIt works reasonably well and doesn’t seem to drain a lot of battery. My only complaint is that running x86 images is super slow... By super slow I mean that running tests on a medium size Django project takes 10 minutes, as opposed to a minute on my Ryzen Linux desktop.