vishvananda / netns

Simple network namespace handling for go.
Apache License 2.0
379 stars 133 forks source link

Extend GetFromDocker() to support also newer distros with cgroup v2 support #49

Closed stv0g closed 3 years ago

stv0g commented 3 years ago

Currently the GetFromDocker() constructor only searches for cgroup v1 paths to identify PIDs of a Docker network namespace.

This PR also adds support for cgroup v2 based systems.

stv0g commented 2 years ago

Thanks for merging @vishvananda :)