Skip to content

Commit 626da84

Browse files
committed
docs: Replace "bind" with "anonymous" for image volume options
Update documentation and autocomplete to use "anonymous" instead of "bind" for image volume options, as "bind" is deprecated and "anonymous" is the correct term for image volumes that are not explicitly bind-mounted. Signed-off-by: MayorFaj <mayorfaj@gmail.com>
1 parent 244aa64 commit 626da84

File tree

4 files changed

+7
-7
lines changed

4 files changed

+7
-7
lines changed

cmd/podman/common/completion.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1149,9 +1149,9 @@ func AutocompleteCgroupMode(_ *cobra.Command, _ []string, _ string) ([]string, c
11491149
}
11501150

11511151
// AutocompleteImageVolume - Autocomplete image volume options.
1152-
// -> "bind", "tmpfs", "ignore"
1152+
// -> "anonymous", "tmpfs", "ignore"
11531153
func AutocompleteImageVolume(_ *cobra.Command, _ []string, _ string) ([]string, cobra.ShellCompDirective) {
1154-
imageVolumes := []string{"bind", "tmpfs", "ignore"}
1154+
imageVolumes := []string{"anonymous", "tmpfs", "ignore"}
11551155
return imageVolumes, cobra.ShellCompDirectiveNoFileComp
11561156
}
11571157

cmd/podman/common/create.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,7 @@ func DefineCreateFlags(cmd *cobra.Command, cf *entities.ContainerCreateOptions,
174174
imageVolumeFlagName := "image-volume"
175175
createFlags.String(
176176
imageVolumeFlagName, cf.ImageVolume,
177-
`Tells podman how to handle the builtin image volumes ("bind"|"tmpfs"|"ignore")`,
177+
`Tells podman how to handle the builtin image volumes ("anonymous"|"tmpfs"|"ignore")`,
178178
)
179179
_ = cmd.RegisterFlagCompletionFunc(imageVolumeFlagName, AutocompleteImageVolume)
180180

docs/source/locale/ja/LC_MESSAGES/markdown.po

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9067,7 +9067,7 @@ msgstr ""
90679067

90689068
#: ../../source/markdown/podman-create.1.md:810
90699069
#: ../../source/markdown/podman-run.1.md:852
9070-
msgid "**--image-volume**=**bind** | *tmpfs* | *ignore*"
9070+
msgid "**--image-volume**=*anonymous* | *tmpfs* | *ignore*"
90719071
msgstr ""
90729072

90739073
#: ../../source/markdown/podman-create.1.md:812

docs/source/markdown/options/image-volume.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,11 @@
22
####> podman create, run
33
####> If file is edited, make sure the changes
44
####> are applicable to all of those.
5-
#### **--image-volume**=**bind** | *tmpfs* | *ignore*
5+
#### **--image-volume**=*anonymous* | *tmpfs* | *ignore*
66

7-
Tells Podman how to handle the builtin image volumes. Default is **bind**.
7+
Tells Podman how to handle the builtin image volumes. Default is **anonymous**.
88

9-
- **bind**: An anonymous named volume is created and mounted into the container.
9+
- **anonymous**: An anonymous named volume is created and mounted into the container.
1010
- **tmpfs**: The volume is mounted onto the container as a tmpfs, which allows the users to create
1111
content that disappears when the container is stopped.
1212
- **ignore**: All volumes are just ignored and no action is taken.

0 commit comments

Comments
 (0)