mirror of
https://github.com/containers/podman.git
synced 2025-06-28 14:29:04 +08:00
Merge pull request #2463 from edsantiago/missed_some_synopses
Followup to #2456: update examples, add trust
This commit is contained in:
@ -32,9 +32,9 @@ var (
|
|||||||
Args: func(cmd *cobra.Command, args []string) error {
|
Args: func(cmd *cobra.Command, args []string) error {
|
||||||
return checkAllAndLatest(cmd, args, false)
|
return checkAllAndLatest(cmd, args, false)
|
||||||
},
|
},
|
||||||
Example: `podman checkpoint --keep ctrID
|
Example: `podman container checkpoint --keep ctrID
|
||||||
podman checkpoint --all
|
podman container checkpoint --all
|
||||||
podman checkpoint --leave-running --latest`,
|
podman container checkpoint --leave-running --latest`,
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@ -40,7 +40,8 @@ var (
|
|||||||
imageExistsCommand.GlobalFlags = MainGlobalOpts
|
imageExistsCommand.GlobalFlags = MainGlobalOpts
|
||||||
return imageExistsCmd(&imageExistsCommand)
|
return imageExistsCmd(&imageExistsCommand)
|
||||||
},
|
},
|
||||||
Example: `podman image exists imageID`,
|
Example: `podman image exists imageID
|
||||||
|
podman image exists alpine || podman pull alpine`,
|
||||||
}
|
}
|
||||||
|
|
||||||
_containerExistsCommand = &cobra.Command{
|
_containerExistsCommand = &cobra.Command{
|
||||||
@ -53,7 +54,8 @@ var (
|
|||||||
return containerExistsCmd(&containerExistsCommand)
|
return containerExistsCmd(&containerExistsCommand)
|
||||||
|
|
||||||
},
|
},
|
||||||
Example: `podman container exists containerID`,
|
Example: `podman container exists containerID
|
||||||
|
podman container exists myctr || podman run --name myctr [etc...]`,
|
||||||
}
|
}
|
||||||
|
|
||||||
_podExistsCommand = &cobra.Command{
|
_podExistsCommand = &cobra.Command{
|
||||||
@ -65,7 +67,8 @@ var (
|
|||||||
podExistsCommand.GlobalFlags = MainGlobalOpts
|
podExistsCommand.GlobalFlags = MainGlobalOpts
|
||||||
return podExistsCmd(&podExistsCommand)
|
return podExistsCmd(&podExistsCommand)
|
||||||
},
|
},
|
||||||
Example: `podman pod exists podID`,
|
Example: `podman pod exists podID
|
||||||
|
podman pod exists mypod || podman pod create --name mypod`,
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@ -17,7 +17,7 @@ var (
|
|||||||
containerKubeCommand cliconfig.GenerateKubeValues
|
containerKubeCommand cliconfig.GenerateKubeValues
|
||||||
containerKubeDescription = "Generate Kubernetes Pod YAML"
|
containerKubeDescription = "Generate Kubernetes Pod YAML"
|
||||||
_containerKubeCommand = &cobra.Command{
|
_containerKubeCommand = &cobra.Command{
|
||||||
Use: "kube CONTAINER | POD",
|
Use: "kube [flags] CONTAINER | POD",
|
||||||
Short: "Generate Kubernetes pod YAML for a container or pod",
|
Short: "Generate Kubernetes pod YAML for a container or pod",
|
||||||
Long: containerKubeDescription,
|
Long: containerKubeDescription,
|
||||||
RunE: func(cmd *cobra.Command, args []string) error {
|
RunE: func(cmd *cobra.Command, args []string) error {
|
||||||
|
@ -88,7 +88,7 @@ var (
|
|||||||
imagesDescription = "lists locally stored images."
|
imagesDescription = "lists locally stored images."
|
||||||
|
|
||||||
_imagesCommand = cobra.Command{
|
_imagesCommand = cobra.Command{
|
||||||
Use: "images",
|
Use: "images [flags] [IMAGE]",
|
||||||
Short: "List images in local storage",
|
Short: "List images in local storage",
|
||||||
Long: imagesDescription,
|
Long: imagesDescription,
|
||||||
RunE: func(cmd *cobra.Command, args []string) error {
|
RunE: func(cmd *cobra.Command, args []string) error {
|
||||||
|
@ -23,7 +23,7 @@ var (
|
|||||||
showTrustCommand cliconfig.ShowTrustValues
|
showTrustCommand cliconfig.ShowTrustValues
|
||||||
setTrustDescription = "Set default trust policy or add a new trust policy for a registry"
|
setTrustDescription = "Set default trust policy or add a new trust policy for a registry"
|
||||||
_setTrustCommand = &cobra.Command{
|
_setTrustCommand = &cobra.Command{
|
||||||
Use: "set",
|
Use: "set [flags] REGISTRY",
|
||||||
Short: "Set default trust policy or a new trust policy for a registry",
|
Short: "Set default trust policy or a new trust policy for a registry",
|
||||||
Long: setTrustDescription,
|
Long: setTrustDescription,
|
||||||
Example: "",
|
Example: "",
|
||||||
@ -36,7 +36,7 @@ var (
|
|||||||
|
|
||||||
showTrustDescription = "Display trust policy for the system"
|
showTrustDescription = "Display trust policy for the system"
|
||||||
_showTrustCommand = &cobra.Command{
|
_showTrustCommand = &cobra.Command{
|
||||||
Use: "show",
|
Use: "show [flags] [REGISTRY]",
|
||||||
Short: "Display trust policy for the system",
|
Short: "Display trust policy for the system",
|
||||||
Long: showTrustDescription,
|
Long: showTrustDescription,
|
||||||
RunE: func(cmd *cobra.Command, args []string) error {
|
RunE: func(cmd *cobra.Command, args []string) error {
|
||||||
|
Reference in New Issue
Block a user