Skip to content

Commit

Permalink
Merge pull request #18567 from ashley-cui/doc
Browse files Browse the repository at this point in the history
[CI:DOCS] Document podman-machine-default behavior
  • Loading branch information
openshift-merge-robot authored May 16, 2023
2 parents 3657d1f + b9aaafb commit 07d2fbc
Show file tree
Hide file tree
Showing 13 changed files with 31 additions and 7 deletions.
2 changes: 1 addition & 1 deletion cmd/podman/machine/init.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ var (
PersistentPreRunE: rootlessOnly,
RunE: initMachine,
Args: cobra.MaximumNArgs(1),
Example: `podman machine init myvm`,
Example: `podman machine init podman-machine-default`,
ValidArgsFunction: completion.AutocompleteNone,
}

Expand Down
2 changes: 1 addition & 1 deletion cmd/podman/machine/rm.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ var (
PersistentPreRunE: rootlessOnly,
RunE: rm,
Args: cobra.MaximumNArgs(1),
Example: `podman machine rm myvm`,
Example: `podman machine rm podman-machine-default`,
ValidArgsFunction: autocompleteMachine,
}
)
Expand Down
2 changes: 1 addition & 1 deletion cmd/podman/machine/ssh.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ var (
Long: "SSH into a managed virtual machine ",
PersistentPreRunE: rootlessOnly,
RunE: ssh,
Example: `podman machine ssh myvm
Example: `podman machine ssh podman-machine-default
podman machine ssh myvm echo hello`,
ValidArgsFunction: autocompleteMachineSSH,
}
Expand Down
2 changes: 1 addition & 1 deletion cmd/podman/machine/start.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ var (
PersistentPreRunE: rootlessOnly,
RunE: start,
Args: cobra.MaximumNArgs(1),
Example: `podman machine start myvm`,
Example: `podman machine start podman-machine-default`,
ValidArgsFunction: autocompleteMachine,
}
startOpts = machine.StartOptions{}
Expand Down
2 changes: 1 addition & 1 deletion cmd/podman/machine/stop.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ var (
PersistentPreRunE: rootlessOnly,
RunE: stop,
Args: cobra.MaximumNArgs(1),
Example: `podman machine stop myvm`,
Example: `podman machine stop podman-machine-default`,
ValidArgsFunction: autocompleteMachine,
}
)
Expand Down
3 changes: 3 additions & 0 deletions docs/source/markdown/podman-machine-init.1.md.in
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@ podman\-machine\-init - Initialize a new virtual machine

Initialize a new virtual machine for Podman.

The default machine name is `podman-machine-default`. If a machine name is not specified as an argument,
then the new machine will be named `podman-machine-default`.

Rootless only.

Podman on MacOS and Windows requires a virtual machine. This is because containers are Linux -
Expand Down
7 changes: 5 additions & 2 deletions docs/source/markdown/podman-machine-inspect.1.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,18 @@
podman\-machine\-inspect - Inspect one or more virtual machines

## SYNOPSIS
**podman machine inspect** [*options*] *name* ...
**podman machine inspect** [*options*] [*name*] ...

## DESCRIPTION

Inspect one or more virtual machines

Obtain greater detail about Podman virtual machines. More than one virtual machine can be
Obtain greater detail about Podman virtual machines. More than one virtual machine can be
inspected at once.

The default machine name is `podman-machine-default`. If a machine name is not specified as an argument,
then `podman-machine-default` will be inspected.

Rootless only.

## OPTIONS
Expand Down
3 changes: 3 additions & 0 deletions docs/source/markdown/podman-machine-os-apply.1.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@ By default, Podman machines on Mac and Linux use an rpm-ostree based distrubitio

For more information, please see the [rpm-ostree docs](https://coreos.github.io/rpm-ostree/container/).

The default machine name is `podman-machine-default`. If a machine name is not specified as an argument,
then the OS changes will be applied to `podman-machine-default`.

## OPTIONS

#### **--help**
Expand Down
3 changes: 3 additions & 0 deletions docs/source/markdown/podman-machine-rm.1.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@ generated for that VM are also removed as is its image file on the filesystem.
Users get a display of what will be deleted and are required to confirm unless the option `--force`
is used.

The default machine name is `podman-machine-default`. If a machine name is not specified as an argument,
then `podman-machine-default` will be removed.

Rootless only.

## OPTIONS
Expand Down
3 changes: 3 additions & 0 deletions docs/source/markdown/podman-machine-set.1.md.in
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@ podman\-machine\-set - Sets a virtual machine setting

Change a machine setting.

The default machine name is `podman-machine-default`. If a machine name is not specified as an argument,
then the settings will be applied to `podman-machine-default`.

Rootless only.

## OPTIONS
Expand Down
3 changes: 3 additions & 0 deletions docs/source/markdown/podman-machine-ssh.1.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@ with the virtual machine is established.

The exit code from ssh command will be forwarded to the podman machine ssh caller, see [Exit Codes](#Exit-Codes).

The default machine name is `podman-machine-default`. If a machine name is not specified as an argument,
then `podman-machine-default` will be SSH'd into.

Rootless only.

## OPTIONS
Expand Down
3 changes: 3 additions & 0 deletions docs/source/markdown/podman-machine-start.1.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@ containers do not run on any other OS because containers' core functionality are
tied to the Linux kernel. Podman machine must be used to manage MacOS and Windows machines,
but can be optionally used on Linux.

The default machine name is `podman-machine-default`. If a machine name is not specified as an argument,
then `podman-machine-default` will be started.

Only one Podman managed VM can be active at a time. If a VM is already running,
`podman machine start` will return an error.

Expand Down
3 changes: 3 additions & 0 deletions docs/source/markdown/podman-machine-stop.1.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@ podman\-machine\-stop - Stop a virtual machine

Stops a virtual machine.

The default machine name is `podman-machine-default`. If a machine name is not specified as an argument,
then `podman-machine-default` will be stopped.

Rootless only.

Podman on MacOS and Windows requires a virtual machine. This is because containers are Linux -
Expand Down

0 comments on commit 07d2fbc

Please sign in to comment.