diff options
author | Daniel J Walsh <dwalsh@redhat.com> | 2020-04-21 14:28:14 -0400 |
---|---|---|
committer | Daniel J Walsh <dwalsh@redhat.com> | 2020-04-21 16:02:11 -0400 |
commit | bc56236102990c6719b7d185bc13c7c70240d211 (patch) | |
tree | bae6fb8fbb949bf0f8434578d52014759dfbbd1a /cmd/podman | |
parent | 592e7867a3fc2fa370f7f24125285e81fb0c6d1a (diff) | |
download | podman-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')
-rw-r--r-- | cmd/podman/common/specgen.go | 1 |
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) |