mirror of
https://github.com/vishvananda/netns
synced 2024-12-17 20:54:37 +00:00
Adding file path for nerdctl and finch (#87)
> nerdctl uses this package for netns, for finch one of our customer requested it for their systems which uses nerdctl to create a container and have a custom network namespace the container connects to. Signed-off-by: Shubharanshu Mahapatra <shubhum@amazon.com>
This commit is contained in:
parent
d37cca38c2
commit
4c46424d73
@ -248,6 +248,10 @@ func getPidForContainer(id string) (int, error) {
|
||||
filepath.Join(cgroupRoot, "kubepods.slice", "*.slice", "*", "docker-"+id+".scope", pidFile),
|
||||
// Same as above but for Guaranteed QoS
|
||||
filepath.Join(cgroupRoot, "kubepods.slice", "*", "docker-"+id+".scope", pidFile),
|
||||
// Support for nerdctl
|
||||
filepath.Join(cgroupRoot, "system.slice", "nerdctl-"+id+".scope", pidFile),
|
||||
// Support for finch
|
||||
filepath.Join(cgroupRoot, "..", "systemd", "finch", id, pidFile),
|
||||
}
|
||||
|
||||
var filename string
|
||||
|
Loading…
Reference in New Issue
Block a user