summaryrefslogtreecommitdiff
path: root/cmd/podman/common.go
diff options
context:
space:
mode:
authorMatthew Heon <matthew.heon@pm.me>2019-06-25 18:06:00 -0400
committerMatthew Heon <matthew.heon@pm.me>2019-06-25 18:06:00 -0400
commit77f2e8467a65ce97f44d3efa7c01c6a65c7e4c4d (patch)
tree5b071699626a4967a65d5b1d5699e1bcc3f63edd /cmd/podman/common.go
parentcc53adaf413ce91b73a4f9b57bda7b34068b1940 (diff)
downloadpodman-77f2e8467a65ce97f44d3efa7c01c6a65c7e4c4d.tar.gz
podman-77f2e8467a65ce97f44d3efa7c01c6a65c7e4c4d.tar.bz2
podman-77f2e8467a65ce97f44d3efa7c01c6a65c7e4c4d.zip
Fix parsing of the --tmpfs option
With StringSlice, we're seeing individual options added and parsed separately, so `tmpfs:nosuid,nodev` turns into three tmpfs mounts passed into pkg/sec (tmpfs:, nosuid, nodev). Swap to StringArray to tell cobra this can't be split on commas. Signed-off-by: Matthew Heon <matthew.heon@pm.me>
Diffstat (limited to 'cmd/podman/common.go')
-rw-r--r--cmd/podman/common.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/cmd/podman/common.go b/cmd/podman/common.go
index 054b01247..8a78e9079 100644
--- a/cmd/podman/common.go
+++ b/cmd/podman/common.go
@@ -496,7 +496,7 @@ func getCreateFlags(c *cliconfig.PodmanCommand) {
"systemd", cliconfig.DefaultSystemD,
"Run container in systemd mode if the command executable is systemd or init",
)
- createFlags.StringSlice(
+ createFlags.StringArray(
"tmpfs", []string{},
"Mount a temporary filesystem (`tmpfs`) into a container (default [])",
)