mirror of
https://github.com/containers/podman.git
synced 2025-08-06 11:32:07 +08:00
Add --no-hostname option
Fixes: https://github.com/containers/podman/issues/25002 Also add the ability to inspect containers for UseImageHosts and UseImageHostname. Finally fixed some bugs in handling of --no-hosts for Pods, which I descovered. Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
This commit is contained in:
@ -688,7 +688,11 @@ func setVolumeAtime(mountPoint string, st os.FileInfo) error {
|
||||
return nil
|
||||
}
|
||||
|
||||
func (c *Container) makePlatformBindMounts() error {
|
||||
func (c *Container) makeHostnameBindMount() error {
|
||||
if c.config.UseImageHostname {
|
||||
return nil
|
||||
}
|
||||
|
||||
// Make /etc/hostname
|
||||
// This should never change, so no need to recreate if it exists
|
||||
if _, ok := c.state.BindMounts["/etc/hostname"]; !ok {
|
||||
|
Reference in New Issue
Block a user