Docker Desktop WSL2 Engine log location

Where does docker desktop with the WSL2 engine enabled keep its logs? I can find no reference where to start debugging.

Did you already look at the Windows Event Log?

Yes, I tried to. But no mentions of the docker engine appear. My guess would be because the engine runs inside the WSL2 container and therefore has very little connection to windows itself

from No log files created and docker logs returnd nothing · Issue #6257 · docker/for-win · GitHub

logs from dockerd and other services running within wsl2 are located in C:\Users\<username>\AppData\Roaming\Docker\log\vm

1 Like

I found it here

/var/log/docker.log

It’s also stated in the docs here