Skip to content

Commit

Permalink
fix: Document removing anonymous volumes at create
Browse files Browse the repository at this point in the history
[NO NEW TESTS NEEDED]
Signed-off-by: Park Jaeon <[email protected]>
  • Loading branch information
finalchild committed Apr 12, 2023
1 parent 3a47342 commit d38b22d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion cmd/podman/common/create.go
Original file line number Diff line number Diff line change
Expand Up @@ -397,7 +397,7 @@ func DefineCreateFlags(cmd *cobra.Command, cf *entities.ContainerCreateOptions,
createFlags.BoolVar(
&cf.Rm,
"rm", false,
"Remove container (and pod if created) after exit",
"Remove container and any anonymous unnamed volume associated with the container after exit",
)
createFlags.BoolVar(
&cf.RootFS,
Expand Down
3 changes: 2 additions & 1 deletion docs/source/markdown/podman-create.1.md.in
Original file line number Diff line number Diff line change
Expand Up @@ -316,7 +316,8 @@ Suppress output information when pulling images

#### **--rm**

Automatically remove the container when it exits. The default is *false*.
Automatically remove the container and any anonymous unnamed volume associated with
the container when it exits. The default is **false**.

@@option rootfs

Expand Down

0 comments on commit d38b22d

Please sign in to comment.