mirror of
https://github.com/containers/podman.git
synced 2025-06-19 08:09:12 +08:00
Handle hostname flag from client
Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
This commit is contained in:
@ -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)
|
||||
|
Reference in New Issue
Block a user