summaryrefslogtreecommitdiff
path: root/cmd/podman/common/specgen.go
diff options
context:
space:
mode:
authorDaniel J Walsh <dwalsh@redhat.com>2020-04-21 14:28:14 -0400
committerDaniel J Walsh <dwalsh@redhat.com>2020-04-21 16:02:11 -0400
commitbc56236102990c6719b7d185bc13c7c70240d211 (patch)
treebae6fb8fbb949bf0f8434578d52014759dfbbd1a /cmd/podman/common/specgen.go
parent592e7867a3fc2fa370f7f24125285e81fb0c6d1a (diff)
downloadpodman-bc56236102990c6719b7d185bc13c7c70240d211.tar.gz
podman-bc56236102990c6719b7d185bc13c7c70240d211.tar.bz2
podman-bc56236102990c6719b7d185bc13c7c70240d211.zip
Handle hostname flag from client
Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
Diffstat (limited to 'cmd/podman/common/specgen.go')
-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 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)