mirror of
https://github.com/containers/podman.git
synced 2025-05-17 15:18:43 +08:00
14 lines
230 B
Go
14 lines
230 B
Go
//go:build !remote
|
|
|
|
package libpod
|
|
|
|
func networkDisabled(c *Container) (bool, error) {
|
|
if c.config.CreateNetNS {
|
|
return false, nil
|
|
}
|
|
if !c.config.PostConfigureNetNS {
|
|
return c.state.NetNS != "", nil
|
|
}
|
|
return false, nil
|
|
}
|