Closed williamoverton closed 3 years ago
Currently you can not call the container.stats function and specify that you dont want to stream the results. This simple change uses the same method used in other functions for the container lib.
API reference: https://docs.docker.com/engine/api/v1.40/#operation/ContainerStats
Can then be called like so: const stats = await container.stats({stream: false})
const stats = await container.stats({stream: false})
Currently you can not call the container.stats function and specify that you dont want to stream the results. This simple change uses the same method used in other functions for the container lib.
API reference: https://docs.docker.com/engine/api/v1.40/#operation/ContainerStats