summaryrefslogtreecommitdiff
path: root/cmd/podman/common/create.go
diff options
context:
space:
mode:
authorOpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>2020-09-21 12:06:46 +0000
committerGitHub <noreply@github.com>2020-09-21 12:06:46 +0000
commitdd4dc4b002e79c28cd824c59d8f6537d347868cf (patch)
tree938e1da3637fb32ef81b8be782f85792951b5cdb /cmd/podman/common/create.go
parent852943516606f32ccc2406f41bcf3df42d7c622c (diff)
parent44d7270a34a0c3578d00858440f2adb53b83ef5e (diff)
downloadpodman-dd4dc4b002e79c28cd824c59d8f6537d347868cf.tar.gz
podman-dd4dc4b002e79c28cd824c59d8f6537d347868cf.tar.bz2
podman-dd4dc4b002e79c28cd824c59d8f6537d347868cf.zip
Merge pull request #7702 from Luap99/fix#7701
Fix incorrect parsing of create/run --volumes-from
Diffstat (limited to 'cmd/podman/common/create.go')
-rw-r--r--cmd/podman/common/create.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/cmd/podman/common/create.go b/cmd/podman/common/create.go
index cfbcf6140..7e3dc7fb4 100644
--- a/cmd/podman/common/create.go
+++ b/cmd/podman/common/create.go
@@ -509,7 +509,7 @@ func GetCreateFlags(cf *ContainerCLIOpts) *pflag.FlagSet {
"volume", "v", containerConfig.Volumes(),
"Bind mount a volume into the container",
)
- createFlags.StringSliceVar(
+ createFlags.StringArrayVar(
&cf.VolumesFrom,
"volumes-from", []string{},
"Mount volumes from the specified container(s)",