diff options
author | OpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com> | 2020-02-17 08:47:08 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-02-17 08:47:08 +0100 |
commit | ff0f8388138f7b66c4312db0e984f0bedcac2558 (patch) | |
tree | bb1cb2695fd0580227465f2ca4d4785220985096 /cmd | |
parent | 92dbcb8841abae35658e5da1bf6eddee7669ea75 (diff) | |
parent | 59c91069c0429acee16b638027c4eae6fe826c75 (diff) | |
download | podman-ff0f8388138f7b66c4312db0e984f0bedcac2558.tar.gz podman-ff0f8388138f7b66c4312db0e984f0bedcac2558.tar.bz2 podman-ff0f8388138f7b66c4312db0e984f0bedcac2558.zip |
Merge pull request #5218 from Jumanjii/update-go-md2man-pkg-name
Update documentation of commit command to show image reference is optional
Diffstat (limited to 'cmd')
-rw-r--r-- | cmd/podman/commit.go | 5 |
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 |