mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-07-29 22:15:38 +02:00
lima, limactl: add page (#10648)
Co-authored-by: K.B.Dharun Krishna <kbdharunkrishna@gmail.com> Co-authored-by: Lena <126529524+acuteenvy@users.noreply.github.com>
This commit is contained in:
parent
7ee3ed4466
commit
a6b9c681b1
2 changed files with 42 additions and 0 deletions
9
pages/common/lima.md
Normal file
9
pages/common/lima.md
Normal file
|
@ -0,0 +1,9 @@
|
|||
# lima
|
||||
|
||||
> This command is an alias of `limactl shell` for the default VM instance.
|
||||
> You can also set the `$LIMA_INSTANCE` environment variable to work on a different instance.
|
||||
> More information: <https://github.com/lima-vm/lima>.
|
||||
|
||||
- View documentation for the original command:
|
||||
|
||||
`tldr limactl`
|
33
pages/common/limactl.md
Normal file
33
pages/common/limactl.md
Normal file
|
@ -0,0 +1,33 @@
|
|||
# limactl
|
||||
|
||||
> Virtual machine manager for Linux guests, with multiple VM templates available.
|
||||
> Can be used to run containers on macOS, but also for generic virtual machine use cases on macOS and Linux hosts.
|
||||
> More information: <https://github.com/lima-vm/lima>.
|
||||
|
||||
- List VMs:
|
||||
|
||||
`limactl list`
|
||||
|
||||
- Create a VM using the default settings and optionally provide a name and/or a template (see `limactl create --list-templates` for available templates):
|
||||
|
||||
`limactl create --name {{vm_name}} template://{{debian|fedora|ubuntu|…}}`
|
||||
|
||||
- Start a VM (this might install some dependencies in it and take a few minutes):
|
||||
|
||||
`limactl start {{vm_name}}`
|
||||
|
||||
- Open a remote shell inside a VM:
|
||||
|
||||
`limactl shell {{vm_name}}`
|
||||
|
||||
- Run a command inside a VM:
|
||||
|
||||
`limactl shell {{vm_name}} {{command}}`
|
||||
|
||||
- Stop/shutdown a VM:
|
||||
|
||||
`limactl stop {{vm_name}}`
|
||||
|
||||
- Delete a VM:
|
||||
|
||||
`limactl remove {{vm_name}}`
|
Loading…
Add table
Reference in a new issue