limactl
limactl
Lima: Linux 虚拟机
示例
启动默认实例:
$ limactl start
打开 Shell:
$ lima
运行容器:
$ lima nerdctl run -d --name nginx -p 8080:80 nginx:alpine
停止默认实例:
$ limactl stop
参阅模板 YAML 文件: /usr/local/share/lima/templates
选项
--debug 调试模式
-h, --help help for limactl
--log-format string 设置日志格式 [text, json] (default "text")
--log-level string 设置日志级别 [trace, debug, info, warn, error]
--tty 启用 TUI 交互,如打开编辑器。默认在终端时为 true。自动化时设为 false。
-y, --yes --tty=false 的别名
另请参见
- limactl clone - 克隆 Lima 实例
- limactl completion - 为指定的 shell 生成自动补全脚本
- limactl copy - 在主机和客户机之间复制文件
- limactl create - 创建 Lima 实例
- limactl delete - 删除 Lima 实例
- limactl disk - Lima 磁盘管理
- limactl edit - 编辑 Lima 实例或模板
- limactl factory-reset - 恢复 Lima 实例到出厂设置
- limactl info - 显示诊断信息
- limactl list - 列出 Lima 实例
- limactl network - Lima 网络管理
- limactl protect - 保护实例以防止意外删除
- limactl prune - 清理垃圾对象
- limactl restart - 重启运行中的实例
- limactl shell - 在 Lima 中执行 shell
- limactl show-ssh - 显示 SSH 命令行(已弃用;请使用
ssh -F
) - limactl snapshot - 管理实例快照
- limactl start - 启动 Lima 实例
- limactl start-at-login - 注册/取消注册实例的自动启动文件
- limactl stop - 停止实例
- limactl sudoers - 生成 /etc/sudoers.d/lima 文件的内容
- limactl tunnel - 为 Lima 创建隧道
- limactl unprotect - 取消保护实例
- limactl validate - 验证 YAML 模板