Issues using file explorer from Docker Desktop

Hello, I just recently started to use Docker Desktop for my studies, I’m trying to customize a Keycloak theme and I just encountered an issue opening the file explorer of my container on Docker Desktop (Click on Container > Files).

Just few seconds before encountering this issue, I managed to drop down my custom theme in the file explorer, I can see him using power shell and bash commands, my custom theme is there, so the first process when I still had the possibility to access the file explorer worked.

But now when i’m trying to click on the “opt” directory in the Docker Desktop file explorer :

the files in the directory just pops for 0,2 seconds then disappears, I can open other directories without issues but not this one, I’m clueless, if anyone can help it would be appreciated.

Have a good day, thanks!

1 Like

On Which platform (Windows, Linux, macOS)? You chose Docker Hub as category, but you have no problem with Docker Hub.

If other fodlers work, you can use the terminal and check the difference between the folders. For example permissions, even though root should be able to open any folder.
Another difference could be that you mounted a host folder into /opt.

I tried it on macOS.

I changed the category to Docker Desktop for Windows.

I’m using Windows 11, yesterday it worked again after I tried randomly and this morning we’re back at it, not working.

There is no differences between folders, same permissions, the only folder i moved in the opt one is a customized theme that i’m working on

I have the exact same problem!

Thank you for changing the category. Since you accidentally changed it to “Windows containers” under “Docker Desktop for Windows”, but you clearly run Linux containers, I corrected the category.

I tried to reproduce it on Windows. I couldn’t.

Can any of you @kkmya @agagioumpi create and share an image with which you experienced this issue? I can try, but I don’t think I can solve it. If there is a bug in Docker Desktop, you can report it on GitHub

@agagioumpi Are you also on Windows?

You can also try to use the keyboard instead of clicking with a mouse. If you click on a folder, the left arrow key should close the folder and the right arrow key should open it. If there is a problem with the clicking event, it could help temporarily.

Yes, I’m using Docker Desktop 4.29.0 (145265) on Windows.

The folder is the same (/opt) and with the right arrow key on the keyboard it behaves in the same way as clicking with the mouse: the folder opens and is closed immediately.

This only happens at a later time because as soon as it is started, the first access to the folder is performed and then the problem occurs.

spamming the arrows to close the folder and then reusing the mouse works.

When I’m having the issue and i can aswell click the folder, and open it with space bar

1 Like

Same issue here today. Sometimes the folder opens, after pressing the spacebar. But not for long. As i click on a file with the mouse it closes.

Docker app: 4.29.0 on MacOS Sonoma 14.4.1.

I haven’t used Docker for a while, so I cann’t tell when the problems started.

Same issue is happening to me for quite a while, even now on the following configuration:

Docker Desktop 4.29.0 (145265)
macOS Sonoma 14.4.1

Having this issue myself. Found a workaround which is to collapse the parent folder. For example: I have a folder temp inside the /opt/ dir. I collapsed the opt dir, then temp i hit the arrow to collapse it, then again to expand it and it stayed. Repeat as necessary.

Guessing there’s a bug in Docker that it thinks the parent directory is collapsed when it is really expanded, which means as soon as you expand the subfolder it instantly collapses the contents to reflect the parents status.

What if the issue is happening with a folder from the root? Eg: /var

Ran into this today. I restarted the container and made sure that the caret for the root folder (/opt in my case) was pointing right before restarting. When the file table blinked off and came back I was able to expand it normally.

To add: You cannot restart to fix this. You must stop the container, then start it up again to run the workaround.

This is most infuriating – plz fix!!!

Yes,It works when using space. Thank u !
Usually, We use click to open or close floder, and it works well.
But, sometimes there is a problem , we can’t use click, it may be a bug of docker desktop.
I use docker desktop for mac.
It seems that, whither useing mac or win, the same problem both happened.

I’ve the same problem, Win11 Docker Desktop 4.30.0. The space bar helps but not enough if I want to click on a file to get the Edit option for instance.
Please correct this explorer, or at least add a filed where you can enter/type the path we want to be opened.

Still an issue with 4.31.1 using windows 11.
when using space to open the folder, it still closes a few moments later by itself.
please fix.my workflow is mostly in the docker desktop app

I am experiencing the same problem.
I can’t expand folders. I’m using the latest Docker Desktop version, v4.31.1.
Running on Windows Server 2022, newest build.

Video showing the problem: https://youtu.be/owfnjpW5uuY

1 Like

i have the same problem. any body solved this problem?!

Just to make sure new visitors don’t miss that message, I recommended reporting the bug on GitHub

If any of you finds an existing report or opens a new report, please, share the link here, so everyone can join the discussion there too.

Still not solved. Using the latest docker desktop version.