summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>2020-04-17 17:01:07 -0400
committerGitHub <noreply@github.com>2020-04-17 17:01:07 -0400
commitaa97cb5f42a35de02d520f6c3006600505a3d6d9 (patch)
treeb354e1b392597557658cce2750d9ae22734a6d7d
parentbd8a0b08cdea5f15d6033b24038ba71aef1f8962 (diff)
parent6c421b076f71167c16d99656747784dede1a4898 (diff)
downloadpodman-aa97cb5f42a35de02d520f6c3006600505a3d6d9.tar.gz
podman-aa97cb5f42a35de02d520f6c3006600505a3d6d9.tar.bz2
podman-aa97cb5f42a35de02d520f6c3006600505a3d6d9.zip
Merge pull request #5869 from rhatdan/user
We were not handling the user option on create
-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)