How to change the docker of the docker extension of vscode on ubuntu?

I have two dockers on my Ubuntu 22.04.

One is from snap and one is from apt installation.

When I disable the snap-docker service, the containers are not showing up in vscode. But these containers are all built with the apt-docker.

So I suppose the extension is using the snap-docker for it’s service. Is there a way to change it to the apt-docker so that I can delete the snap-docker to keep the system clean.

In short, the vscode extension is using snap.docker.dockerd.service instead of docker.service. How can I change it to the latter?

Vscode docker extension ID: ms-azuretools.vscode-docker

Read more here: Source link