stats(**kwargs)
Stream statistics for this container. Similar to the docker stats command.
Parameters:
decode (bool) – If set to true, stream will be decoded into dicts on the fly. Only applicable if stream is True. False by default.
stream (bool) – If set to false, only the current stats will be returned instead of a stream. True by default.
Raises:
docker.errors.APIError – If the server returns an error.