mirror of
https://github.com/podman-container-tools/podman.git
synced 2026-08-05 00:15:44 +00:00
13 lines
230 B
Go
13 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
|
|
}
|