dockerwindows-10docker-desktopdocker-logs

Docker Desktop can't get container logs


I'm using Docker Desktop on Win10. Containers works correctly and when I start container without -d parameter I see logs in cosnole output. Also when I use command docker logs I can see the logs. Unluckily when I try to get logs from Docker Desktop Logs tab I see: No such container: fb1c4bd5bc56031edb44e0c2e1e4ebd5c281f1a2d96bbc2b16249154e0c2d013

I tryed reinstall Docker Desktop but it doesn't help. This problem appeard a couple month ago , actually I have the newest (4.12.0) version.

Any ideas how to fix this?


Solution

  • Try deleting all execting containers and volumes with :

    docker system prune 
    

    https://docs.docker.com/engine/reference/commandline/system_prune/

    After that, reset your wsl distro.