execShell method

Future<(int, Uint8List)> execShell(
  1. String command
)

Runs a shell command string inside the running container.

The command string is split into tokens (respecting single- and double-quoted groups) and forwarded to exec.

Returns (exitCode, combinedOutputBytes).

Throws ContainerStartException when called before start.

Implementation

Future<(int, Uint8List)> execShell(String command) =>
    exec(splitCommand(command));