-
Notifications
You must be signed in to change notification settings - Fork 2.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unable to retrieve image details or access container console after update of Docker to v26 #11436
Comments
Same here, it may be related to Docker Swarm 26.0.0 |
This is indeed an issue with Docker 26 compatibility - this version removed some functionality we rely on to display the image details. As Docker 26 has only just come out we were unable to test against it for any past releases, but I am discussing with the team as to our next steps. |
Same issue when I click to access the console. |
Same here when accessing console for any container in Portainer BE |
Here as well.
EDIT: saw your response now @jamescarppe, thank you. |
and how do I revert the docker version? If not, how do I install a more stable version? |
Docker provides instructions for installing specific versions - these are the instructions for Ubuntu (select the Specific version tab in step 2) but there are other installation processes available for other distros. 25.0.5 is the most recent version in the version 25 release. For example, on a Ubuntu 20.04 server:
To identify the version strings available on your particular Ubuntu version, you can use:
Pick the most recent non-Docker 26 version string and proceed from there. Note also that if you perform an
|
If you're running ubuntu 22.04, then set the version as follows. Rolling back makes console etc available again. |
For ubuntu 22.04, the correct version should be |
I also spot that when I click on the image sha link in the images list page, it refreshes a bit and returns to the same list page. |
I have AlmaLinux 8 as my OS. The instructions for downgrading are in the Specific version tab at https://docs.docker.com/engine/install/centos/ So I did it like this:
Then my Portainer Business Edition 2.19.4 the exec console started working again. |
The same problem for Debian 12 - another one also when uploading Portaine with |
Same problem here "Inability to see image information and to use container consoles" for Portainer BE (docker swarm) on Ubuntu 23.10 Portainer Business Edition 2.19.4 Client: Docker Engine - Community Server: Docker Engine - Community |
Same issue here,
until issue solved or new version of docker to try. |
Same issue here! |
Debian Bookworm here... no console access. Seems like the image update indicator (red/green) is also affected, as all containers are "green"... very unusual. To work around I did this (borrowing from ubuntu above):
|
same here: |
same here: Now have to ssh into OMV and run: |
Have the same problem but only when connected to the x86 version of the agent on my machines (1 ARM / 1 x86_64). Versions: ARM Server: x86 Server: |
Same problem here. Any ETA by when we can expect a fix? It's quite annoying to not be able to get into a container's shell from the browser. 😉 |
For now I have downgraded to docker 25.0.5 by apt removing and auto cleaning docker. Then using dockers install script with the —version tag. Then commenting out docker from its sources.list.d until there’s a fix |
For now I have downgraded using following command and i am back in business. Will not upgrade these 3 packages until i see a fix here. |
same here: debian 12 |
This one did the job for my version of debian:
|
big thanks, it works! |
for ubuntu 23.10 the command below works: VERSION_STRING=5:25.0.5-1~ubuntu.23.10~mantic
sudo apt install docker-ce=$VERSION_STRING docker-ce-cli=$VERSION_STRING docker-ce-rootless-extras=$VERSION_STRING containerd.io docker-buildx-plugin docker-compose-plugin |
Commenting to help others and to get visibility to quickly fix this issue. For Ubuntu 20.04 Focal Fossa use this command to fix the issue by downgrading docker
As others have suggested commenting out docker from the sources.list until there’s a fix may be a good idea since any time you run an apt update or apt-get update this will update docker again. Alternatively you can set a hold on the packages by running "sudo apt-mark hold docker-ce docker-ce-cli docker-ce-rootless-extras containerd.io docker-buildx-plugin docker-compose-plugin" To undo the hold run "sudo apt-mark unhold docker-ce docker-ce-cli docker-ce-rootless-extras containerd.io docker-buildx-plugin docker-compose-plugin" |
same here: Now have to ssh into OMV and run: |
As mentioned in this thread already, clear your browser cache fully and this should resolve. |
I'm using :latest with Docker 27.0.3 (3 new servers setup in the last week). It is clearly still not working for me and it obviously is not a cache issue. |
@SponsorAds don't use latest, use 2.20.3 as described here |
@avatar7008 same problem for me. I cleared cache and tried it on a brand new laptop where the site was never open. Problem still persists.
Portainer has version 2.20.3. |
just to make it clear for everyone (including myself):
correct @jamescarppe (especially 2nd point) ? |
Why is this issue closed?? |
Like @felipewnp, I still have this issue with the latest Portainer release. I have created a stack from Docker Hub (Nginx Proxy Manager), and whether I click Console or Attach in the Stack/Container, I get the same error mentioned in this issue. This issue affects all Stacks & Containers I currently have running, no matter how they were added to my Portainer instance. |
@jmessy919 |
Thanks @corasaniti - didn't know it wasn't yet pushed to the |
Thank you @corasaniti. Also, I want to ask for a favor to Portanier team. Can you guys please update YML files referenced inside the official guideline "Install Portainer CE with Docker on Linux"? This will save others' time. Thanks |
The documentation you have linked is for 2.19. For 2.20 documentation, you can use the version dropdown at the top of the documentation page to select the 2.20 documentation, or go to https://docs.portainer.io/v/2.20. The default documentation version displayed corresponds to the most recent non-STS version, which at present is 2.19. When 2.21 LTS is released, the default documentation will be updated to point to that version's documentation. |
@jamescarppe could you please address my question here please? |
I am running Portainer 2.20.3 on Docker 27.0.3 and do not have this issue. The change that caused this was in Docker 26, and the fix applies to versions 26 and above, including 27. Make sure you clear your browser cache / local storage, and/or try from another browser or incognito. |
@jamescarppe Due to the security vulnerability CVE-2024-41110, I was forced to upgrade to version 27.1.0. Currently, I'm having trouble accessing the console and images through Portainer. Portainer version Portainer Edition Docker version: |
As has already been mentioned in this thread, and is displayed at the top of the original issue:
Update to 2.20.3 and clear your browser cache. |
No meu caso tenho o docker 27. E o ubuntu 22.4 |
Any plans on incorporating the fix on |
The fix is there for both CE and BE on the 2.20 version. For CE, that would be |
I've used Which is instructed here: https://docs.portainer.io/start/install-ce/server/docker/linux |
Don't use |
Will follow, but be aware: the term IMHO this should be mentioned as 99% of users will follow the "start install" guides when installing portainer and will never know about the 2024 release principle. |
Instead of latest, use sts tag. Worked out for me |
The current base documentation is for 2.19 so is written around that. As 2.20 is a STS release it isn't the default documentation version displayed, but you can select 2.20-specific docs with the version dropdown at the top of the documentation. Once 2.21 is released that will become the default documentation and this won't be an issue. |
Again, I didn't select any version. I used the URL (which most users will get from google) which is All I suggest is to give an indication this version is not compatible with the latest Docker and is not really I fail to see the problem adding this to the landing page which most users will land on. |
This is primarily due to historical reasons - we started the STS/LTS process with 2.20, and we were already where we were with 2.19 before that, and then the Docker 26+ issue appeared. This will be resolved with the 2.21 issue, which should only be a few weeks away.
I've added warning boxes to the Docker installation pages in docs now. Hopefully this should help. |
EDIT FOR TLDR (April 5, 2024)
Portainer 2.20.3 has now been released, which includes a fix for these issues under Docker 26 and above. We recommend updating to 2.20.3 if you need to use Docker 26 or above.
Original report
Before you start please confirm the following.
Problem Description
Inability to see image information and to use container consoles.
Expected Behavior
Image info is accessible and container consoles are functional
Actual Behavior
Clicking on an image causes the error message "Error Unable to retrieve image details" and clicking on container consoles also produce this same error.
Steps to Reproduce
Portainer logs or screenshots
No response
Portainer version
2.19.4
Portainer Edition
Community Edition (CE)
Platform and Version
Docker 5:26.0.0-1
ubuntu.20.04focalOS and Architecture
Ubuntu 22.04
Browser
No response
What command did you use to deploy Portainer?
Additional Information
Info seen online for this issue states to execute the following for recreating the portainer container:
docker run -d -p 8000:8000 -p 9443:9443 --name portainer --restart=always -v /var/run/docker.sock:/var/run/docker.sock portainer/portainer-ce:latest
This does not work, and the issue persists even after a reinstall of Ubuntu and reinstall of docker/portainer.
Only feasible fix is to rollback docker-ce version.
The text was updated successfully, but these errors were encountered: