mirror of
https://github.com/containers/podman.git
synced 2025-09-11 17:15:06 +08:00

We previously attempted to work within CNI to do this, without success. So let's do it manually, instead. We know where the files should live, so we can remove them ourselves instead. This solves issues around sudden reboots where containers do not have time to fully tear themselves down, and leave IP address allocations which, for various reasons, are not stored in tmpfs and persist through reboot. Fixes #5433 Signed-off-by: Matthew Heon <matthew.heon@pm.me>
30 lines
677 B
Go
30 lines
677 B
Go
// +build !linux
|
|
|
|
package libpod
|
|
|
|
import "github.com/containers/libpod/libpod/define"
|
|
|
|
func (r *Runtime) setupRootlessNetNS(ctr *Container) (err error) {
|
|
return define.ErrNotImplemented
|
|
}
|
|
|
|
func (r *Runtime) setupNetNS(ctr *Container) (err error) {
|
|
return define.ErrNotImplemented
|
|
}
|
|
|
|
func (r *Runtime) teardownNetNS(ctr *Container) error {
|
|
return define.ErrNotImplemented
|
|
}
|
|
|
|
func (r *Runtime) createNetNS(ctr *Container) (err error) {
|
|
return define.ErrNotImplemented
|
|
}
|
|
|
|
func (c *Container) getContainerNetworkInfo() (*InspectNetworkSettings, error) {
|
|
return nil, define.ErrNotImplemented
|
|
}
|
|
|
|
func getCNINetworksDir() (string, error) {
|
|
return "", define.ErrNotImplemented
|
|
}
|