News for hackers. Stuff that matters.
Re:New MacBook Air by ehutch79 on Wednesday March 18, 2020 @10:00AM (#22616715)
This is a dumb question, but you're talking about using docker, right? Doesn't docker spin up an entire vm for containers? That does seem pretty heavy for a MBA of any generation?
Re:New MacBook Air by menssen on Wednesday March 18, 2020 @10:38AM (#22617100)
It's almost impressive that Docker-on-macOS works so seamlessly that people are downvoting this comment. Yes, Docker containers run in a Linux VM on macOS. It's just one though, and generally seems fine on low resource workstations, unlike Vagrant setups from a few years ago that tried to run a VM for every application.
Re:New MacBook Air by qayxc on Wednesday March 18, 2020 @10:17AM (#22616885)
It's not a VM, which is the point of docker in the first place.

I agree, though, that it's next to unusable on a low-power dual-core system like the MBA if only for limited RAM.

Re:New MacBook Air by mcpeepants on Wednesday March 18, 2020 @10:25AM (#22616977)
docker on mac does indeed leverage a VM as the docker host, since a Linux kernel is required
Re:New MacBook Air by qayxc on Wednesday March 18, 2020 @11:04AM (#22617402)
To my understanding Docker doesn't do hardware virtualisation and doesn't run indiviual VMs per container instance, though, or does it?
Re:New MacBook Air by mcpeepants on Wednesday March 18, 2020 @11:38AM (#22617789)
it does not, but there is still some overhead running a single linux VM for the docker host on macOS
Re:New MacBook Air by hobofan on Wednesday March 18, 2020 @10:13AM (#22616837)
> Doesn't docker spin up an entire vm for containers?

(It generally does not. Instead it uses more lightweight isolation primtives. That has always been one of its main selling points.)

EDIT: see reply

> That does seem pretty heavy for a MBA of any generation?

It very much depends on what you are running inside the containers. I regularly have a dev environment with ~8 relatively lightweight containers running on my Early 2014 MBA without any problems.

Re:New MacBook Air by mikewhy on Wednesday March 18, 2020 @10:33AM (#22617050)
Docker for Mac very much uses a VM. It's as lightweight as it can be (using the OS-supplied hypervisor, not something third party), but still a VM.
Re:New MacBook Air by ecnahc515 on Wednesday March 18, 2020 @01:01PM (#22618774)
The context is on MacOS. Docker is a Linux technology, it runs Linux containers, thus it requires a Linux VM to run Docker on a Mac.