-
Notifications
You must be signed in to change notification settings - Fork 136
Closed
Description
Currently the tool does not work on MacOS as there is no cgroupfs there, as used in
Lines 22 to 28 in ad55e1c
def running_in_docker_container(): | |
with open('/proc/self/cgroup', 'r') as procfile: | |
for line in procfile: | |
fields = line.strip().split('/') | |
if 'docker' in fields or '/docker-' in line: | |
return True | |
return False |
This can be fixed by checking if the running OS is MacOS and if so, not executing the is_running_in_container
function.
g3rzi
Metadata
Metadata
Assignees
Labels
No labels