mirror of
https://github.com/containers/podman.git
synced 2026-07-13 00:31:45 -04:00
Merge pull request #3435 from mheon/fix_tmpfs_options
Fix parsing of the --tmpfs option
This commit is contained in:
@@ -444,7 +444,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 [])",
|
||||
)
|
||||
|
||||
@@ -690,7 +690,7 @@ func ParseCreateOpts(ctx context.Context, c *GenericCLIResults, runtime *libpod.
|
||||
StopTimeout: c.Uint("stop-timeout"),
|
||||
Sysctl: sysctl,
|
||||
Systemd: systemd,
|
||||
Tmpfs: c.StringSlice("tmpfs"),
|
||||
Tmpfs: c.StringArray("tmpfs"),
|
||||
Tty: tty,
|
||||
User: user,
|
||||
UsernsMode: usernsMode,
|
||||
|
||||
@@ -448,7 +448,7 @@ func NewIntermediateLayer(c *cliconfig.PodmanCommand, remote bool) GenericCLIRes
|
||||
m["subuidname"] = newCRString(c, "subuidname")
|
||||
m["sysctl"] = newCRStringSlice(c, "sysctl")
|
||||
m["systemd"] = newCRBool(c, "systemd")
|
||||
m["tmpfs"] = newCRStringSlice(c, "tmpfs")
|
||||
m["tmpfs"] = newCRStringArray(c, "tmpfs")
|
||||
m["tty"] = newCRBool(c, "tty")
|
||||
m["uidmap"] = newCRStringSlice(c, "uidmap")
|
||||
m["ulimit"] = newCRStringSlice(c, "ulimit")
|
||||
|
||||
Reference in New Issue
Block a user