The default /etc/containers/networks location might not be writeable, while this breaks podman network create it does not need to break all podman commands since the lock is created on libpod initialization. ref https://github.com/containers/common/pull/1270 Signed-off-by: Paul Holzinger <pholzing@redhat.com> |
||
|---|---|---|
| .. | ||
| testfiles | ||
| README.md | ||
| cni_conversion.go | ||
| cni_exec.go | ||
| cni_suite_test.go | ||
| cni_types.go | ||
| config.go | ||
| config_freebsd.go | ||
| config_linux.go | ||
| config_test.go | ||
| network.go | ||
| run.go | ||
| run_freebsd.go | ||
| run_linux.go | ||
| run_test.go | ||
README.md
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.