Skip to content

Docker Detection Easily Broken #16

Description

@sargun

It appears like Docker detection happens by inspecting /proc/1/cgroup. If the cgroup paths themselves don't include "docker", then the detection fails. This happens if the user decides to control / configure the cgroup path.

I think there may be a couple other heuristics that we can use. Some other options:

  • look for /.dockerenv
  • look for /.dockerinit

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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