Cannot see images, containers, networks, or anything
As you can see on the below screenshot, I'm not able to list any of the docker images I have pulled. What is happening here?

Is your emacs shell fish as well? What does the buffer * Messages * says?
Otherwise as usual, OS/Emacs version etc.
I have this issue too, and would love to help if I can.
- My
*Messages*buffer is clean. M-x emacs-version=>GNU Emacs 26.3 (build 1, x86_64-apple-darwin18.2.0, NS appkit-1671.20 Version 10.14.3 (Build 18D109)) of 2019-09-02.- MacOS 12.6.1 Monterey
docker --version=>Docker version 20.10.17, build 100c701
I get a blank screen just like @drivs, despite many running containers.
I've intermittently tried this package several times, and always it's been this way.
My current version of the package is 20221023.1201, and here are the logs of the install from Messages
Package ‘docker-20220530.603’ deleted.
Contacting host: melpa.org:443
Parsing tar file...done
Extracting docker-20221023.1201/
Extracting docker-20221023.1201/docker-compose.el
Wrote /Users/andrew/.emacs.d/elpa/docker-20221023.1201/docker-compose.el
Extracting docker-20221023.1201/docker-container.el
Wrote /Users/andrew/.emacs.d/elpa/docker-20221023.1201/docker-container.el
Extracting docker-20221023.1201/docker-core.el
Wrote /Users/andrew/.emacs.d/elpa/docker-20221023.1201/docker-core.el
Extracting docker-20221023.1201/docker-faces.el
Wrote /Users/andrew/.emacs.d/elpa/docker-20221023.1201/docker-faces.el
Extracting docker-20221023.1201/docker-group.el
Wrote /Users/andrew/.emacs.d/elpa/docker-20221023.1201/docker-group.el
Extracting docker-20221023.1201/docker-image.el
Wrote /Users/andrew/.emacs.d/elpa/docker-20221023.1201/docker-image.el
Extracting docker-20221023.1201/docker-network.el
Wrote /Users/andrew/.emacs.d/elpa/docker-20221023.1201/docker-network.el
Extracting docker-20221023.1201/docker-pkg.el
Wrote /Users/andrew/.emacs.d/elpa/docker-20221023.1201/docker-pkg.el
Extracting docker-20221023.1201/docker-process.el
Wrote /Users/andrew/.emacs.d/elpa/docker-20221023.1201/docker-process.el
Extracting docker-20221023.1201/docker-utils.el
Wrote /Users/andrew/.emacs.d/elpa/docker-20221023.1201/docker-utils.el
Extracting docker-20221023.1201/docker-volume.el
Wrote /Users/andrew/.emacs.d/elpa/docker-20221023.1201/docker-volume.el
Extracting docker-20221023.1201/docker.el
Wrote /Users/andrew/.emacs.d/elpa/docker-20221023.1201/docker.el
Generating autoloads for docker-compose.el...done
Generating autoloads for docker-container.el...done
Generating autoloads for docker-core.el...done
Generating autoloads for docker-faces.el...done
Generating autoloads for docker-group.el...done
Generating autoloads for docker-image.el...done
Generating autoloads for docker-network.el...done
Generating autoloads for docker-pkg.el...done
Generating autoloads for docker-process.el...done
Generating autoloads for docker-utils.el...done
Generating autoloads for docker-volume.el...done
Generating autoloads for docker.el...done
Wrote /Users/andrew/.emacs.d/elpa/docker-20221023.1201/docker-autoloads.el [2 times]
Checking /Users/andrew/.emacs.d/elpa/docker-20221023.1201... [2 times]
Compiling /Users/andrew/.emacs.d/elpa/docker-20221023.1201/docker-compose.el...done
Wrote /Users/andrew/.emacs.d/elpa/docker-20221023.1201/docker-compose.elc
Checking /Users/andrew/.emacs.d/elpa/docker-20221023.1201...
Compiling /Users/andrew/.emacs.d/elpa/docker-20221023.1201/docker-container.el...done
Wrote /Users/andrew/.emacs.d/elpa/docker-20221023.1201/docker-container.elc
Checking /Users/andrew/.emacs.d/elpa/docker-20221023.1201...
Compiling /Users/andrew/.emacs.d/elpa/docker-20221023.1201/docker-core.el...done
Wrote /Users/andrew/.emacs.d/elpa/docker-20221023.1201/docker-core.elc
Checking /Users/andrew/.emacs.d/elpa/docker-20221023.1201...
Compiling /Users/andrew/.emacs.d/elpa/docker-20221023.1201/docker-faces.el...done
Wrote /Users/andrew/.emacs.d/elpa/docker-20221023.1201/docker-faces.elc
Checking /Users/andrew/.emacs.d/elpa/docker-20221023.1201...
Compiling /Users/andrew/.emacs.d/elpa/docker-20221023.1201/docker-group.el...done
Wrote /Users/andrew/.emacs.d/elpa/docker-20221023.1201/docker-group.elc
Checking /Users/andrew/.emacs.d/elpa/docker-20221023.1201...
Compiling /Users/andrew/.emacs.d/elpa/docker-20221023.1201/docker-image.el...done
Wrote /Users/andrew/.emacs.d/elpa/docker-20221023.1201/docker-image.elc
Checking /Users/andrew/.emacs.d/elpa/docker-20221023.1201...
Compiling /Users/andrew/.emacs.d/elpa/docker-20221023.1201/docker-network.el...done
Wrote /Users/andrew/.emacs.d/elpa/docker-20221023.1201/docker-network.elc
Checking /Users/andrew/.emacs.d/elpa/docker-20221023.1201... [2 times]
Compiling /Users/andrew/.emacs.d/elpa/docker-20221023.1201/docker-process.el...done
Wrote /Users/andrew/.emacs.d/elpa/docker-20221023.1201/docker-process.elc
Checking /Users/andrew/.emacs.d/elpa/docker-20221023.1201...
Compiling /Users/andrew/.emacs.d/elpa/docker-20221023.1201/docker-utils.el...done
Wrote /Users/andrew/.emacs.d/elpa/docker-20221023.1201/docker-utils.elc
Checking /Users/andrew/.emacs.d/elpa/docker-20221023.1201...
Compiling /Users/andrew/.emacs.d/elpa/docker-20221023.1201/docker-volume.el...done
Wrote /Users/andrew/.emacs.d/elpa/docker-20221023.1201/docker-volume.elc
Checking /Users/andrew/.emacs.d/elpa/docker-20221023.1201...
Compiling /Users/andrew/.emacs.d/elpa/docker-20221023.1201/docker.el...done
Wrote /Users/andrew/.emacs.d/elpa/docker-20221023.1201/docker.elc
Checking /Users/andrew/.emacs.d/elpa/docker-20221023.1201...
Done (Total of 11 files compiled, 2 skipped)
If you M-x term (or shell), then type docker ps -a does it work?
Because OSX I suspect https://github.com/purcell/exec-path-from-shell issues.
I'm running into the same issue and installed and setup exec-path-from-shell but am still getting nothing in my docker popup. I can run docker commands from eshell, which is using the docker command provided from docker-core.el as seen below without issues
Welcome to the Emacs shell
~/Desktop $ which docker
docker is an autoloaded interactive byte-compiled Lisp function in ‘docker-core.el’.
~/Desktop $ docker ps
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
21c29978d614 python "/bin/bash" 4 weeks ago Up 16 minutes saltlab
~/Desktop $
I tried term with bash, ansi-term with sh, and eshell. Docker works just fine. Invoking docker via shell-command also works just fine.
Additionally, I hacked up docker-run-start-file-process-shell-command to give me some output, and it's clear that the execution of docker is working. It's just falling apart somewhere between there and the display buffer.
Edit: On a whim, I toggle-debug-on-error and no errors.
I'm running into the same issue and installed and setup exec-path-from-shell but am still getting nothing in my docker popup. I can run docker commands from eshell, which is using the docker command provided from
docker-core.elas seen below without issues
I think which lies to you, using (docker) would call the elisp function but "docker ps" actually calls the real docker binary.
Does not help with the issue tho, something weird is going on, probably in aio.
I'm creating a VM where I can install Emacs 26.3 to check.
Ok I checked in a docker container:

Preeeeetty sure the problem is OSX related.
What happens if you do M-x eval-expression (aio-wait-for (docker-container-entries-propertized (docker-container-ls-arguments))) (after having loaded docker.el)?
When I do that, my *Messages* buffer looks like this:
Running: docker container ls --all --format="[{{ json .Names }},{{ json .ID }},{{ json .Image }},{{ json .Command }},{{ json .CreatedAt }},{{ json .Status }},{{ json .Ports }},{{ json .Names }}]"
Finished: docker container ls --all --format="[{{ json .Names }},{{ json .ID }},{{ json .Image }},{{ json .Command }},{{ json .CreatedAt }},{{ json .Status }},{{ json .Ports }},{{ json .Names }}]"
(("adoring_carver" ["89b048dd7d58" "ubuntu:20.04" "\"bash\"" "2022-11-24 08:46:09" #("Up 21 minutes" 0 13 ...) "" "adoring_carver"]) ("arqivis-blurscore-1" ["bf51635aeea8" "arqivis/blurscore:dev" "\"/bin/true\"" "2022-11-21 11:15:07" #("Exited (0) 2 days ago" 0 21 ...) "" "arqivis-blurscore-1"]))
Basically, try to debug docker-process-sentinel to check what it's called with, maybe it behaves differently on OSX. You can also ensure that docker-run-async is called properly and starts the process.
Ah interesting: https://emacs.stackexchange.com/questions/40603/process-input-seems-buggy-in-emacs-on-os-x
Load docker.el, then eval this and give the normal interface a try:
(defun docker-run-async (program &rest args)
"Execute \"PROGRAM ARGS\" and return a promise with the results."
(let* ((process-connection-type nil)
(process (apply #'docker-run-start-file-process-shell-command program args))
(promise (aio-promise)))
(set-process-query-on-exit-flag process nil)
(set-process-sentinel process (-partial #'docker-process-sentinel promise))
promise))
@andrewsw, @seandjones92, @drivs: friendly ping :wink:
(aio-wait-for (docker-container-entries-propertized (docker-container-ls-arguments)))
invokes the debugger with
(void-function transient-default-value)
transient-default-value was introduced to transient about 11 months ago, and my installation doesn't include it.
After upgrading transient, this is now working for me.
It looks to my untrained eye like the dependency specification for transient is just incorrect. I see transient-0.3.7 is required, but that version predates transient-default-value. I don't know what the earliest required version of transient is, but 20221127.2227 works for me.
I have the same problem on linux.
I have updated both docker.el and transient.el package with straight-pull-all and I require transient.el before docker.el in my config but I'm still running into the problem.
I also checked to require transient before magit which I guess requires it
However if I manually go to the transient-default-value definition in the transient package and eval it myself, the problem is solved.
I got it working now, after installing the transient package. Thanks for the help!
TRAMP in Emacs 29 will have support for Docker out of the box (Link).
Oh well there's nothing I can do, tarsius does not want to do a stable release so we are stuck at 0.3.7 (https://stable.melpa.org/#/transient).
He has been noticed (https://github.com/magit/transient/issues/190) but it's not a priority for him.
@purcell: am I allowed to "depend" on melpa-unstable packages like "20221127.2227" ? Is there a notation to mean "the latest please" ?
There's no special notation for that. Ideally packages should work with stable released versions of packages, and not all users will have MELPA "unstable" enabled. But if you have no choice, e.g. because there's no stable release of the thing you're depending on, then you can depend on snapshot versions. Note that this means it's not very meaningful to have a stable release of your package, because it wouldn't be usable by people who try to avoid MELPA "unstable".
Thanks a lot of the clarification and happy new year :smile: