network
limactl network
Lima 网络管理
示例
创建网络:
$ limactl network create foo --gateway 192.168.42.1/24
将 VM 实例连接到新创建的网络:
$ limactl create --network lima:foo --name vm1
$ limactl create --network lima:foo --name vm2
选项
-h, --help help for network
从父命令继承的选项
--debug 调试模式
--log-format string 设置日志格式 [text, json] (default "text")
--log-level string 设置日志级别 [trace, debug, info, warn, error]
--tty 启用 TUI 交互,如打开编辑器。默认在终端时为 true。自动化时设为 false。
-y, --yes --tty=false 的别名
另请参见
- limactl - Lima: Linux 虚拟机
- limactl network create - 创建 Lima 网络
- limactl network delete - 删除一个或多个 Lima 网络
- limactl network list - 列出网络