Native Docker client and virtual machine

A common (and officially recommended) approach is to have a minimal virtual machine that runs Linux and Docker, and a Docker client that talks to Docker on that virtual machine.

The currently recommended and supported way of doing this is

Unlike the virtual machine approach described previously, the VM created by the Docker for Mac/Windows tools is very lightweight, as it only runs Docker, but it’s worth being aware that you may still need to modify the memory of the VM in the settings if you’re running resource-heavy programs. ...

Get Docker in Practice, Second Edition now with the O’Reilly learning platform.

O’Reilly members experience live online training, plus books, videos, and digital content from nearly 200 publishers.