lima-vm/lima

GitHub: lima-vm/lima

在 macOS 上轻量运行 Linux 虚拟机和容器环境的开源工具

Stars: 20369 | Forks: 822

[[🌎**网站**]](https://lima-vm.io/) [[📖**文档**]](https://lima-vm.io/docs/) [[👤**Slack (`#lima`)**]](https://slack.cncf.io) Shows a stylized 'Lima' text in bold, modern font # Lima: Linux 虚拟机 [![Ask DeepWiki](https://deepwiki.com/badge.svg)](https://deepwiki.com/lima-vm/lima) [![OpenSSF 最佳实践](https://www.bestpractices.dev/projects/6505/badge)](https://www.bestpractices.dev/projects/6505) [![OpenSSF 记分卡](https://api.scorecard.dev/projects/github.com/lima-vm/lima/badge)](https://scorecard.dev/viewer/?uri=github.com/lima-vm/lima) [Lima](https://lima-vm.io/) 启动 Linux 虚拟机,并提供自动文件共享和端口转发(类似于 WSL2)。 Lima 的最初目标是向 Mac 用户推广 [containerd](https://containerd.io),包括 [nerdctl (contaiNERD ctl)](https://github.com/containerd/nerdctl), 但 Lima 同样可用于非容器应用。 Lima 还支持其他容器引擎(Docker、Podman、Kubernetes 等)以及非 macOS 主机(Linux、NetBSD 等)。 ## 快速入门 安装 (Homebrew): ``` brew install lima limactl start ``` 运行 Linux 命令: ``` lima uname -a ``` 使用 containerd 运行容器: ``` lima nerdctl run --rm hello-world ``` 使用 Docker 运行容器: ``` limactl start template:docker export DOCKER_HOST=$(limactl list docker --format 'unix://{{.Dir}}/sock/docker.sock') docker run --rm hello-world ``` 使用 Kubernetes 运行容器: ``` limactl start template:k8s export KUBECONFIG=$(limactl list k8s --format 'unix://{{.Dir}}/copied-from-guest/kubeconfig.yaml') kubectl apply -f ... ``` 更多信息请参阅 。 ### 行为准则 Lima 遵循 [CNCF 行为准则](https://github.com/cncf/foundation/blob/main/code-of-conduct.md)。 **我们是 [云原生计算基金会 (Cloud Native Computing Foundation)](https://cncf.io/) 的孵化项目。** Linux Foundation® (TLF) 拥有注册商标并使用商标。有关 TLF 商标列表,请参阅 [商标使用](https://www.linuxfoundation.org/legal/trademark-usage)。
标签:CNCF, containerd, DNS解析, Docker, EVTX分析, EVTX分析, Homebrew, Linux虚拟机, nerdctl, Podman, web渗透, WSL2替代, 子域名突变, 安全防御评估, 容器技术, 容器运行时, 开发环境, 开源项目, 文件共享, 日志审计, 本地开发, 端口转发, 虚拟化, 请求拦截, 身份验证强制