diff options
author | Paul Holzinger <paul.holzinger@web.de> | 2020-09-20 19:43:19 +0200 |
---|---|---|
committer | Paul Holzinger <paul.holzinger@web.de> | 2020-09-20 22:49:09 +0200 |
commit | 44d7270a34a0c3578d00858440f2adb53b83ef5e (patch) | |
tree | 938e1da3637fb32ef81b8be782f85792951b5cdb /cmd/podman | |
parent | 852943516606f32ccc2406f41bcf3df42d7c622c (diff) | |
download | podman-44d7270a34a0c3578d00858440f2adb53b83ef5e.tar.gz podman-44d7270a34a0c3578d00858440f2adb53b83ef5e.tar.bz2 podman-44d7270a34a0c3578d00858440f2adb53b83ef5e.zip |
Fix incorrect parsing of create/run --volumes-from
Add a bunch of tests to ensure that --volumes-from
works as expected.
Also align the podman create and run man page.
Signed-off-by: Paul Holzinger <paul.holzinger@web.de>
Diffstat (limited to 'cmd/podman')
-rw-r--r-- | cmd/podman/common/create.go | 2 |
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)", |