summaryrefslogtreecommitdiff
path: root/cmd/podman
diff options
context:
space:
mode:
authorDaniel J Walsh <dwalsh@redhat.com>2020-04-17 14:52:23 -0400
committerDaniel J Walsh <dwalsh@redhat.com>2020-04-17 14:52:51 -0400
commit6c421b076f71167c16d99656747784dede1a4898 (patch)
tree99aafbd3c440168af96b54dfefea7d8f2b9259e7 /cmd/podman
parentba289dcd79e3a2b5ec5dc02bd8adb84c93bef577 (diff)
downloadpodman-6c421b076f71167c16d99656747784dede1a4898.tar.gz
podman-6c421b076f71167c16d99656747784dede1a4898.tar.bz2
podman-6c421b076f71167c16d99656747784dede1a4898.zip
We were not handling the user option on create
With this patch we can get run_passwd_test.go to pass Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
Diffstat (limited to 'cmd/podman')
-rw-r--r--cmd/podman/common/specgen.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/cmd/podman/common/specgen.go b/cmd/podman/common/specgen.go
index 87194a9fb..85b344b3c 100644
--- a/cmd/podman/common/specgen.go
+++ b/cmd/podman/common/specgen.go
@@ -34,6 +34,7 @@ func FillOutSpecGen(s *specgen.SpecGenerator, c *ContainerCLIOpts, args []string
return nil
}
+ s.User = c.User
inputCommand := args[1:]
if len(c.HealthCmd) > 0 {
s.HealthConfig, err = makeHealthCheckFromCli(c.HealthCmd, c.HealthInterval, c.HealthRetries, c.HealthTimeout, c.HealthStartPeriod)