def METHOD_NAME(self, command):
    self.log("Executing %s" % command)
    a_command = shlex.split(command)
    cp = subprocess.run(
        ['docker', 'exec', self.id] + a_command,
        stdout=subprocess.PIPE, stderr=subprocess.PIPE,
    )
    if cp.returncode != 0:
        raise Exception(cp.stderr.decode('utf-8'))
    return cp.stdout