mirror of
https://github.com/containers/podman.git
synced 2025-06-21 01:19:15 +08:00
Merge pull request #3818 from chenzhiwei/hostname
Set Pod hostname as Pod name
This commit is contained in:
@ -30,6 +30,9 @@ func (r *Runtime) makeInfraContainer(ctx context.Context, p *Pod, imgName, imgID
|
|||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Set Pod hostname as Pod name
|
||||||
|
g.Config.Hostname = p.config.Name
|
||||||
|
|
||||||
isRootless := rootless.IsRootless()
|
isRootless := rootless.IsRootless()
|
||||||
|
|
||||||
entryCmd := []string{r.config.InfraCommand}
|
entryCmd := []string{r.config.InfraCommand}
|
||||||
|
Reference in New Issue
Block a user