Could not retrieve compose files

Hello,
have checked with my installation - if the container was started with docker run ... and without docker compose there is no docker-compose.yml available to be displayed. Another idea is that the container was started with docker compose but the docker-compose.yml-file was moved afterwards?
Best regards
Matthias :slight_smile:

Hello Matthias,

Thank you for your suggestion. I started the container using Docker Compose, so the docker-compose.yml file should still be in its original location and available.

Best regards,
Achmad

When you run

docker compose ls -a

do you see the compose file in the list?

If you do and the file cat be accessed, then you should probably report it as a bug as Docker Desktop suggests on the screenshot.

1 Like

Yes, the compose file does appear in the list when I run docker compose ls -a.

So it looks like the current Docker Desktop canā€™t handle the compose file when it is in a WSL2 distribution. You can report it as a bug. Since the files in the WSl2 distriution can be read from the host, I think Docker Desktop should be able to read it. If not from the host, then through Docker Desktopā€™s WSl2 distribution.