Multi-boot Mac: macOS and Ubuntu Linux - where does Docker run fastest?

0

1

On a recent* Mac with a multi-boot choice of either macOS or Ubuntu Linux, on which OS does Docker run fastest on?

This multi-boot would provide booting into either of the selected OSs so that it that runs directly/natively on the machine's hardware, "on the metal".

I'd assume Docker would run fastest on Ubuntu Linux, given that Docker was originally for Linux.

With macOS, Docker uses an intermediary, HyperKit, which is a form of virtualisation. Official Reference Therefore I'm assuming that like other forms of virtualisation, like VirtualBox, there will be some kind of overhead. Though I would understand that this overhead would vary in impact depending on the particular virtualisation.

I'm looking into this as a developer setup: I'd still like to use macOS for various things but wonder if I'd get the most out of the machine's hardware capabilities if I had Ubuntu (or other Linux) for some of my work that mainly involves Docker.

*By "recent" I would be saying from more or less 2014 onwards to present.

therobyouknow

Posted 2019-04-03T09:48:36.420

Reputation: 3 596

Answers

0

Docker will run fastest on Linux, because on macOS docker has to emulate Linux, it is slower to start and restart as it has to shutdown Linux. The same holds true for Windows, BTW, where Docker is not only slower to run, it is much slower to start, much slower yet to restart, and in my experience (YMMV) very unstable.

user2531336

Posted 2019-04-03T09:48:36.420

Reputation: 183

Thank you, but what is IMXP? – therobyouknow – 2019-04-03T10:16:57.777

"Slower to start and restart" - understood. But what about once up and running - what is the performance difference? – therobyouknow – 2019-04-03T10:18:01.137

Running will also be slower, it is the starting and stopping that will be MUCH slower ... – user2531336 – 2019-04-03T10:29:17.530