mirror of
https://github.com/containers/podman.git
synced 2025-08-06 03:19:52 +08:00
Set Pod hostname as Pod name
Signed-off-by: Chen Zhiwei <zhiweik@gmail.com>
This commit is contained in:
@ -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}
|
||||
|
Reference in New Issue
Block a user