Score:0

Failed to connect. Is Docker running? (Vs Code)

us flag

I get this error in Ubuntu in vscode and I can't see my images in vscode.

I run sudo docker ps -a and everything is OK on terminal!

What should I do to solve this problem?

enter image description here

enter image description here

Milad avatar
us flag
Is it about `sudo`?
jp flag
Dan
It is highly plausible that it's about `sudo`. You shouldn't set up docker to require `sudo`. Other than being a security problem, your IDE which doesn't run using sudo will not be able to access and use any docker command. Internally, it is most likely getting a permission denied error.
Milad avatar
us flag
@Dan I should delete docker and install it in another way?
jp flag
Dan
In theory, no. It is fixable. You can try following this doc https://docs.docker.com/engine/install/linux-postinstall/ on how to not require `sudo`. And then see if is enough (In short, you need to your user to the docker group and fix some permissions).
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.