Skip to content

Support running on MacOS #15

@disconnect3d

Description

@disconnect3d

Currently the tool does not work on MacOS as there is no cgroupfs there, as used in

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions