From bc56236102990c6719b7d185bc13c7c70240d211 Mon Sep 17 00:00:00 2001 From: Daniel J Walsh Date: Tue, 21 Apr 2020 14:28:14 -0400 Subject: Handle hostname flag from client Signed-off-by: Daniel J Walsh --- cmd/podman/common/specgen.go | 1 + 1 file changed, 1 insertion(+) diff --git a/cmd/podman/common/specgen.go b/cmd/podman/common/specgen.go index 7818c628d..71010feb3 100644 --- a/cmd/podman/common/specgen.go +++ b/cmd/podman/common/specgen.go @@ -494,6 +494,7 @@ func FillOutSpecGen(s *specgen.SpecGenerator, c *ContainerCLIOpts, args []string // Hostname: c.String("hostname"), //} + s.Hostname = c.Hostname sysctl := map[string]string{} if ctl := c.Sysctl; len(ctl) > 0 { sysctl, err = util.ValidateSysctls(ctl) -- cgit v1.2.3-54-g00ecf