From 6c421b076f71167c16d99656747784dede1a4898 Mon Sep 17 00:00:00 2001 From: Daniel J Walsh Date: Fri, 17 Apr 2020 14:52:23 -0400 Subject: 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 --- cmd/podman/common/specgen.go | 1 + 1 file changed, 1 insertion(+) (limited to 'cmd/podman/common') 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) -- cgit v1.2.3-54-g00ecf