Set Pod hostname as Pod name

Signed-off-by: Chen Zhiwei <zhiweik@gmail.com>
This commit is contained in:
Chen Zhiwei
2019-08-15 07:23:32 -04:00
parent f9ddf914a3
commit 4f0ab1cc8d

View File

@ -30,6 +30,9 @@ func (r *Runtime) makeInfraContainer(ctx context.Context, p *Pod, imgName, imgID
return nil, err
}
// Set Pod hostname as Pod name
g.Config.Hostname = p.config.Name
isRootless := rootless.IsRootless()
entryCmd := []string{r.config.InfraCommand}