简体   繁体   中英

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

problem solved by using one installation by the office installation method. uninstall snap and the extension 'Docker'.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM