Skip to content

Commit aaf4013

Browse files
authored
Merge pull request #206 from fonzarely/fix-doc-memory-param
Update doc - Memory param
2 parents 53245ae + ce0e8f5 commit aaf4013

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

cmd/launch.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ func includeLaunchFlags(cmd *cobra.Command) {
3737
cmd.Flags().StringVarP(&imageVersion, "image", "i", "alpine_3.20.3", "Image to be launched.")
3838
cmd.Flags().StringVarP(&machineArch, "arch", "a", "", "Machine architecture. Defaults to host architecture.")
3939
cmd.Flags().StringVarP(&machineCPU, "cpu", "c", "2", "Number of CPUs to allocate.")
40-
cmd.Flags().StringVarP(&machineMemory, "memory", "m", "2048", "Amount of memory (in kB) to allocate.")
40+
cmd.Flags().StringVarP(&machineMemory, "memory", "m", "2048", "Amount of memory (in MB) to allocate.")
4141
cmd.Flags().StringVarP(&machineDisk, "disk", "d", "5G", "Disk space (in bytes) to allocate. K, M, G suffixes are supported.")
4242
cmd.Flags().StringVar(&machineMount, "mount", "", "Path to a host directory to be shared with the instance.")
4343
cmd.Flags().StringVarP(&sshPort, "ssh", "s", "22", "Host port to forward for SSH (required).")

docs/docs/cli/alpine_launch.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,10 @@ Create and start an instance.
1818
-d, --disk string Disk space (in bytes) to allocate. K, M, G suffixes are supported. (default "10G")
1919
-h, --help help for launch
2020
-i, --image string Image to be launched. (default "alpine_3.16.0")
21-
-m, --memory string Amount of memory (in kB) to allocate. (default "2048")
21+
-m, --memory string Amount of memory (in MB) to allocate. (default "2048")
2222
--mount string Path to a host directory to be shared with the instance.
2323
-n, --name alpine Instance name for use in alpine commands.
2424
-p, --port , Forward additional host ports. Multiple ports can be separated by ,.
2525
-v, --shared Toggle whether to use mac's native vmnet-shared mode.
2626
-s, --ssh string Host port to forward for SSH (required). (default "22")
2727
```
28-

0 commit comments

Comments
 (0)