Lima: Linux Machines on Your Mac cover

Technology · Ebook

Lima: Linux Machines on Your Mac

by Shriira Press

4.7(430)184 pagesPublished 2026

Lima (Linux Machines) launches Linux virtual machines on macOS and Linux with automatic file sharing and port forwarding — making it effortless to get an integrated Linux environment, especially for running containers. This free book teaches it from the ground up: the Linux-on-your-laptop problem and what Lima is, Linux VMs on the desktop (the container-on-Mac story), how Lima works (the architecture, virtualization, integration), getting started, configuration (YAML, images, resources, provisioning), file sharing and port forwarding, running containers (containerd/nerdctl, Docker, the Docker Desktop alternative), managing VMs (the limactl CLI, lifecycle, multiple VMs), the ecosystem (Colima, Rancher Desktop built on Lima), and using Lima in practice. Ten focused chapters with clear diagrams that demystify running Linux and containers on your Mac — an effortless, integrated, open-source Linux-VM engine and the foundation of the open-source container-on-Mac ecosystem.

Contents

  1. 1Preface
  2. 2Chapter 1 — What Lima Is
  3. 3Chapter 2 — Linux VMs on the Desktop
  4. 4Chapter 3 — How Lima Works
  5. 5Chapter 4 — Getting Started
  6. 6Chapter 5 — Configuration
  7. 7Chapter 6 — File Sharing and Port Forwarding
  8. 8Chapter 7 — Running Containers
  9. 9Chapter 8 — Managing VMs
  10. 10Chapter 9 — The Ecosystem: Tools Built on Lima
  11. 11Chapter 10 — Using Lima in Practice