docker.el icon indicating copy to clipboard operation
docker.el copied to clipboard

Add support for `docker stats`

Open dcaixinha opened this issue 4 years ago • 2 comments

Reopening issue 50 from docker-emacs. I'd like to add support for docker stats.

This command on its own already opens a stream that auto-updates – this would be the simplest integration but it would mean that we had to run a ansi-shell to display it and we wouldn't be able to sort, as we currently are in other commands (e.g. docker images ls).

Another possibility is to use the --no-stream argument and call it every X seconds, then following a logic similar to docker-image.el.

What do you think about this?

dcaixinha avatar Feb 03 '21 10:02 dcaixinha

Directly hit the API (https://docs.docker.com/engine/api/v1.41/#operation/ContainerStats) for better integration in emacs.

There is https://github.com/Silex/docker-api.el by the same author I don't know why he decided to use the docker cmd line instead.

antoineB avatar Jul 25 '21 13:07 antoineB

There is https://github.com/Silex/docker-api.el by the same author I don't know why he decided to use the docker cmd line instead.

See https://github.com/Silex/docker.el/issues/2

Using the API means reinventing a lot of what the docker cmd line does for me. But hey PR welcome :wink:

Silex avatar Aug 04 '21 13:08 Silex

Closing due to inactivity, reopen if needed.

Silex avatar May 22 '23 08:05 Silex