Check if another VM is running on machine start

Only one VM can be up at a time. If another VM is running, or the current VM is running, error out on a podman machine start

[NO TESTS NEEDED]

Signed-off-by: Ashley Cui <acui@redhat.com>
This commit is contained in:
Ashley Cui
2021-04-28 14:18:28 -04:00
parent 476c76f580
commit 53057d5c20
4 changed files with 32 additions and 0 deletions

View File

@ -14,6 +14,9 @@ Podman on MacOS requires a virtual machine. This is because containers are Linux
containers do not run on any other OS because containers' core functionality are
tied to the Linux kernel.
Only one Podman managed VM can be active at a time. If a VM is already running,
`podman machine start` will return an error.
**podman machine start** starts a Linux virtual machine where containers are run.
## OPTIONS