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

Docker daemon error messages

Open Doodler8888 opened this issue 1 year ago • 2 comments

This issue is probably related if not the same as #140.

I don't see any messages originating from the docker daemon. For instance, if I try to delete an image that is used by some container, I will just see this in the messages buffer:

Running: docker image rm 7fb468b501e1 error in process sentinel: docker-process-sentinel: Error running: "docker image rm 7fb468b501e1" (exited abnormally with code 1) error in process sentinel: Error running: "docker image rm 7fb468b501e1" (exited abnormally with code 1)

But it would be pretty handy if it's possible to see the actual error message like:

Error response from daemon: conflict: unable to delete 7fb468b501e1 (must be forced) - image is being used by stopped container 651e2402a695

Doodler8888 avatar Jul 30 '24 09:07 Doodler8888

Thanks. Actually the error is logged but in another buffer like * docker image rm 7fb468b501e1 * which is not very convenient.

What should be done is modify https://github.com/Silex/docker.el/blob/master/docker-process.el#L105 and https://github.com/Silex/docker.el/blob/master/docker-process.el#L109 so it prints these messages to some * docker output * buffer instead.

Will try when I have some time.

Silex avatar Aug 02 '24 14:08 Silex

It's actually a bit more complicated than that, but working on something.

Silex avatar Aug 04 '24 20:08 Silex