inspectContainer method

Future<DockerContainerState> inspectContainer(
  1. String id
)

The state of the container id: whether it runs, its health, its published ports. Throws a DockerException (status 404) when it does not exist.

Implementation

Future<DockerContainerState> inspectContainer(String id) async =>
    DockerContainerState.fromJson(
      await _json(await _send('GET', '/containers/$id/json')),
    );