mirror of
https://github.com/containers/podman.git
synced 2026-03-24 09:32:43 -04:00
Unset the NOTIFY_SOCKET environment variable after sending the MAIN_PID and READY message. This avoids any unintentional side-effects of other code paths using the socket assuming they'd run in a non-server short-lived Podman process. Signed-off-by: Valentin Rothberg <vrothberg@redhat.com>
This package abstracts CNI from libpod.
It implements the ContainerNetwork interface defined in libpod/network/types/network.go for the CNI backend.
Testing
Run the tests with:
go test -v -mod=vendor -cover ./libpod/network/cni/
Run the tests as root to also test setup/teardown. This will execute CNI and therefore the cni plugins have to be installed.