portainer: Unable to retrieve image details
Bug description
Clicking on container console button throws an error message: Unable to retrieve images details.
Expected behavior Expect the web console window to appear
Steps to reproduce the issue:
- Go to the portainer GUI and enter the containers section
- Click on console button
- throws an popup error message: Unable to retrieve images details
Technical details:
- Portainer version: 1.20.2
- Docker version (managed by Portainer): Docker 18.09.2 on linux, amd64
- Platform (windows/linux): Ubuntu 18.04.2 LTS
- Command used to start Portainer (
docker run -d -p 9000:9000 -v /var/run/docker.sock:/var/run/docker.sock -v portainer_data:/data portainer/portainer
): - Browser: Chromium Version 73.0.3683.86 (Official Build)
Picture
About this issue
- Original URL
- State: closed
- Created 5 years ago
- Comments: 51 (2 by maintainers)
Recently there has been an error “Unable to retrieve image details” when trying to open the terminal of the container “portainer/portainer-ce:2.19.4”.
Version 2.20.1 fixed the issue for me. Found from blog post https://www.portainer.io/blog/portainer-and-docker-26. When pulling the new image,
latest
tag is still referencing the LTS 2.19.4 version, so specify STS version:2.20.1
would work.this should be reopened or a new issue created
Hi! I join to that community with “Error Unable to retrieve image details”. Docker version 26.0.0, build 2ae903e Portainer latest/oldest have same error. Also I can’t attach into container using
docker exec -it container-name bash
in CLI. I got error “OCI runtime exec failed: exec failed: unable to start container process: exec: “bash”: executable file not found in $PATH: unknown”.docker exec -it container-name sh
is working.The issue persists: portainer/agent:2.19.4 Docker version 26.0.0, build 2ae903e
From Issue #11436 : https://www.portainer.io/blog/portainer-and-docker-26
Same for me. For others who need help here is some context. I was using this in docker-compose.yml :
And had to change it for this :
Then
docker compose up -d
.I also had to Ctrl + Maj + R portainer web page to flush the cache for it to work properly once updated.
I had to completely reboot the server to take effect…
Fixed by following https://www.portainer.io/blog/portainer-and-docker-26.
I have Docker 26.01 on Ubuntu 20.04.6 LTS. Upgraded from Portainer V2.19.4 to V2.20.1 by forcing version number instead of “latest”, like this:
docker pull portainer/portainer-ce:2.20.1 docker service update --image portainer/portainer-ce:2.20.1 --publish-add 9443:9443 --force portainer_portainer
docker pull portainer/agent:2.20.1 docker service update --image portainer/agent:2.20.1 --force portainer_agent
FIX on my portainer + Docker version 26.0.1, build d260a54
docker volume create portainer_data docker run -d -p 8000:8000 -p 9000:9000 --name portainer --restart=always
-v /var/run/docker.sock:/var/run/docker.sock -v portainer_data:/data portainer/portainer-ce:2.20.1
Same here Linux aarch64:
Same here, Ubuntu 22.04 and Docker 26, Portainer 2.20.1, still having this issue
I had same issue, running ubuntu, but could not find quick easy way to downgrade docker to v25. I went the route of upgrading portainer from command line to the latest 2.20.1 and that was super quick and fixed things: https://docs.portainer.io/v/2.20/start/upgrade/docker
+1
I had the same issues. As they doesn’t have support yet, I had downgraded it on debian to
VERSION_STRING=5:25.0.5-1~debian.12~bookworm
sudo apt-get install docker-ce=$VERSION_STRING docker-ce-cli=$VERSION_STRING containerd.io docker-buildx-plugin docker-compose-plugin --allow-downgrades
+1 Debian 12 Docker version 26.0.0, build 2ae903e
+1 Issue: Ubuntu 22.04.4 LTS (GNU/Linux 5.15.0-94-generic x86_64), Docker version 26.0.0, build 2ae903e, Portainer Business Edition 2.19.4 Ubuntu 22.04.4 LTS (GNU/Linux 5.15.0-101-generic x86_64), Docker version 26.0.0, build 2ae903e, Portainer Community Edition 2.19.4 No issue: Ubuntu 22.04.4 LTS (GNU/Linux 5.15.0-100-generic x86_64), Docker version 25.0.4, build 1a576c5, Portainer Business Edition 2.19.4