Extension validation command isn't working

I’m running Docker Desktop on Ubuntu 22.04. The docker extension validate command isn’t working for me. It’s giving the following error:

Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?

I’ve verified that the Docker daemon is running. Other CLI commands such as docker ps work fine.

Can you share the output of docker context ls.

Hey @meyay,

Sorry I missed this. Stepped away from working on my extension for a while, but I’m back at it now. Just updated to the latest Docker Desktop and still seeing the same behavior. Here’s the output of docker context ls:

NAME                TYPE                DESCRIPTION                               DOCKER ENDPOINT                                   KUBERNETES ENDPOINT   ORCHESTRATOR
default             moby                Current DOCKER_HOST based configuration   unix:///var/run/docker.sock                                             
desktop-linux *     moby                Docker Desktop                            unix:///home/anders/.docker/desktop/docker.sock

That’s pretty ugly. You might need to copy/paste it