def RemoteCommand(self, command,
                    should_log=False, retries=SSH_RETRIES,
                    ignore_failure=False, login_shell=False,
                    suppress_warning=False, timeout=None):
    # Escapes bash sequences
    command = command.replace("'", r"'\''")

    logging.info('Docker running: %s' % command)
    command = "sudo docker exec %s bash -c '%s'" % (self.docker_id, command)
    return self.RemoteHostCommand(command, should_log, retries,
                                  ignore_failure, login_shell, suppress_warning)
Runs a command inside the container.
dataset/ETHPy150Open GoogleCloudPlatform/PerfKitBenchmarker/perfkitbenchmarker/linux_virtual_machine.py/ContainerizedDebianMixin.RemoteCommand