getLogs method

Future<String> getLogs()

Everything the container printed so far, standard output and error together.

Implementation

Future<String> getLogs() async {
  final lines = await docker.containerLogs(containerId).toList();
  return lines.map((line) => line.text).join('\n');
}