summaryrefslogtreecommitdiff
path: root/cmd/podman/commit.go
diff options
context:
space:
mode:
authorAllan Jacquet-Cretides <allan.jacquet@gmail.com>2020-02-15 10:48:23 +0100
committerAllan Jacquet-Cretides <allan.jacquet@gmail.com>2020-02-15 11:11:00 +0100
commit59c91069c0429acee16b638027c4eae6fe826c75 (patch)
treefad303dcac0797902819e8772bc598046e379a90 /cmd/podman/commit.go
parent9e9b157aa925d8d427999389aabf915dcad83355 (diff)
downloadpodman-59c91069c0429acee16b638027c4eae6fe826c75.tar.gz
podman-59c91069c0429acee16b638027c4eae6fe826c75.tar.bz2
podman-59c91069c0429acee16b638027c4eae6fe826c75.zip
Update documentation of commit command to show image reference is optional
Following Commit ba1d1304a67b ("make image reference for commit optional") Updates usage text used by cobra and markdown document used to generate MAN page. Fixes: #5145 Signed-off-by: Allan Jacquet-Cretides <allan.jacquet@gmail.com>
Diffstat (limited to 'cmd/podman/commit.go')
-rw-r--r--cmd/podman/commit.go5
1 files changed, 3 insertions, 2 deletions
diff --git a/cmd/podman/commit.go b/cmd/podman/commit.go
index b4d249c66..7c35a4832 100644
--- a/cmd/podman/commit.go
+++ b/cmd/podman/commit.go
@@ -15,7 +15,7 @@ var (
commitDescription = `Create an image from a container's changes. Optionally tag the image created, set the author with the --author flag, set the commit message with the --message flag, and make changes to the instructions with the --change flag.`
_commitCommand = &cobra.Command{
- Use: "commit [flags] CONTAINER IMAGE",
+ Use: "commit [flags] CONTAINER [IMAGE]",
Short: "Create new image based on the changed container",
Long: commitDescription,
RunE: func(cmd *cobra.Command, args []string) error {
@@ -26,7 +26,8 @@ var (
},
Example: `podman commit -q --message "committing container to image" reverent_golick image-committed
podman commit -q --author "firstName lastName" reverent_golick image-committed
- podman commit -q --pause=false containerID image-committed`,
+ podman commit -q --pause=false containerID image-committed
+ podman commit containerID`,
}
// ChangeCmds is the list of valid Changes commands to passed to the Commit call