aboutsummaryrefslogtreecommitdiff
path: root/libpod/container.go
diff options
context:
space:
mode:
authorOpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>2022-09-06 12:43:55 +0200
committerGitHub <noreply@github.com>2022-09-06 12:43:55 +0200
commit6b3bb9e75e239f4470bca843f0a2cdf5b5e9b82c (patch)
treec3504335e6f65b5262a24c88a7dac0da978ae531 /libpod/container.go
parenta61a9525e37f6a3a76e8e12b61dac5131700e9d1 (diff)
parenta3aecf0f26971cbf178fc705d0983ee248a6492b (diff)
downloadpodman-6b3bb9e75e239f4470bca843f0a2cdf5b5e9b82c.tar.gz
podman-6b3bb9e75e239f4470bca843f0a2cdf5b5e9b82c.tar.bz2
podman-6b3bb9e75e239f4470bca843f0a2cdf5b5e9b82c.zip
Merge pull request #15632 from dfr/freebsd-container
Add support for FreeBSD containers
Diffstat (limited to 'libpod/container.go')
-rw-r--r--libpod/container.go14
1 files changed, 0 insertions, 14 deletions
diff --git a/libpod/container.go b/libpod/container.go
index 44a8669fd..1891b124f 100644
--- a/libpod/container.go
+++ b/libpod/container.go
@@ -1133,20 +1133,6 @@ func (c *Container) NetworkDisabled() (bool, error) {
return networkDisabled(c)
}
-func networkDisabled(c *Container) (bool, error) {
- if c.config.CreateNetNS {
- return false, nil
- }
- if !c.config.PostConfigureNetNS {
- for _, ns := range c.config.Spec.Linux.Namespaces {
- if ns.Type == spec.NetworkNamespace {
- return ns.Path == "", nil
- }
- }
- }
- return false, nil
-}
-
func (c *Container) HostNetwork() bool {
if c.config.CreateNetNS || c.config.NetNsCtr != "" {
return false