Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions plugins/docker.py
Original file line number Diff line number Diff line change
Expand Up @@ -238,7 +238,7 @@ def get_container_id(self, container_pid):
# Extract container_id from absolute path
container_id = splitted_path[-1]
return container_id

# No cgroup mount with an absolute path, this can happen if cgroup v2 is used.
# Instead, search for the mounted /etc/hostname, /etc/hosts or /etc/resolv.conf
# Iterate each mount in mounts list
Expand All @@ -253,7 +253,7 @@ def get_container_id(self, container_pid):
# Extract container_id from absolute path
container_id = splitted_path[-2]
return container_id

# No container id found
return ""

Expand Down