diff options
author | OpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com> | 2021-10-01 15:32:14 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-10-01 15:32:14 -0400 |
commit | 1de96f2c4c390bae29c303e2390da9e87a993d3f (patch) | |
tree | b9a2839581ca47bc7cbac93eabb248144d073848 /cmd/podman/common/create.go | |
parent | 9dddd6ab4bd8d5d142ffc53732668212da34b0e6 (diff) | |
parent | 6da97c86314d8c80b912ba83db57fd26da19bfb7 (diff) | |
download | podman-1de96f2c4c390bae29c303e2390da9e87a993d3f.tar.gz podman-1de96f2c4c390bae29c303e2390da9e87a993d3f.tar.bz2 podman-1de96f2c4c390bae29c303e2390da9e87a993d3f.zip |
Merge pull request #11777 from cdoern/podVolumesFrom
Pod Volumes From Support
Diffstat (limited to 'cmd/podman/common/create.go')
-rw-r--r-- | cmd/podman/common/create.go | 15 |
1 files changed, 7 insertions, 8 deletions
diff --git a/cmd/podman/common/create.go b/cmd/podman/common/create.go index e714b6785..a3ff37c19 100644 --- a/cmd/podman/common/create.go +++ b/cmd/podman/common/create.go @@ -656,14 +656,6 @@ func DefineCreateFlags(cmd *cobra.Command, cf *entities.ContainerCreateOptions, ) _ = cmd.RegisterFlagCompletionFunc(mountFlagName, AutocompleteMountFlag) - volumesFromFlagName := "volumes-from" - createFlags.StringArrayVar( - &cf.VolumesFrom, - volumesFromFlagName, []string{}, - "Mount volumes from the specified container(s)", - ) - _ = cmd.RegisterFlagCompletionFunc(volumesFromFlagName, AutocompleteContainers) - workdirFlagName := "workdir" createFlags.StringVarP( &cf.Workdir, @@ -877,4 +869,11 @@ func DefineCreateFlags(cmd *cobra.Command, cf *entities.ContainerCreateOptions, "Limit read rate (bytes per second) from a device (e.g. --device-read-bps=/dev/sda:1mb)", ) _ = cmd.RegisterFlagCompletionFunc(deviceReadBpsFlagName, completion.AutocompleteDefault) + volumesFromFlagName := "volumes-from" + createFlags.StringArrayVar( + &cf.VolumesFrom, + volumesFromFlagName, []string{}, + "Mount volumes from the specified container(s)", + ) + _ = cmd.RegisterFlagCompletionFunc(volumesFromFlagName, AutocompleteContainers) } |