1

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

4
  • Is it about sudo?
    – Milad
    Oct 12, 2021 at 11:20
  • 2
    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.
    – Dan
    Oct 13, 2021 at 11:23
  • @Dan I should delete docker and install it in another way?
    – Milad
    Oct 13, 2021 at 11:43
  • In theory, no. It is fixable. You can try following this doc 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).
    – Dan
    Oct 13, 2021 at 12:31

0

You must log in to answer this question.

Browse other questions tagged .