'Check if the current platform is Linux in a Docker container.
@return: C{True} if the current platform has been detected as Linux
inside a Docker container.
@rtype: C{bool}'

def isDocker(self, _initCGroupLocation='/proc/1/cgroup'):

    if (not self.isLinux()):
        return False
    from twisted.python.filepath import FilePath
    initCGroups = FilePath(_initCGroupLocation)
    if initCGroups.exists():
        controlGroups = [x.split(':') for x in initCGroups.getContent().split('\n')]
        for group in controlGroups:
            if ((len(group) == 3) and group[2].startswith('/docker/')):
                return True
    return False
