def isDocker(self, _initCGroupLocation="/proc/1/cgroup"):
        if not self.isLinux():
            return False

        from twisted.python.filepath import FilePath

        # Ask for the cgroups of init (pid 1)
        initCGroups = FilePath(_initCGroupLocation)
        if initCGroups.exists():
            # The cgroups file looks like "2:cpu:/". The third element will
            # begin with /docker if it is inside a Docker container.
            controlGroups = [x.split(b":")
                             for x in initCGroups.getContent().split(b"\n")]

            for group in controlGroups:
                if len(group) == 3 and group[2].startswith(b"/docker/"):
                    # If it starts with /docker/, we're in a docker container
                    return True

        return False
construct(tuple:(long,long,long,long)|(long,long,long,long,long)
dataset/ETHPy150Open twisted/twisted/twisted/python/runtime.py/Platform.isDocker--crossover with--dataset/ETHPy150Open kuri65536/python-for-android/python3-alpha/python-libs/gdata/Crypto/PublicKey/qNEW.py/construct