3

I am trying to use vscode on the containers running on a remote server, but when I use 'Attach visual studio code' function I got this: enter image description here

I have docker daemon running: enter image description here

enter image description here I am in the 'docker' group and I am able to run docker without sudo:

enter image description here

I am running out of solutions here could someone help me?

@Romain This is the print out of ps aux | grep -i vscode (I just screenshot the process of my userid): enter image description here System Info: Ubuntu 16.04.6 LTS; vscode version: Version: 1.60.0-insider (Universal) Commit: 699084fdb48460c68086b85b5c08f3d39055e772; vscode Docker extension version: v1.15.0

OrionNebular
  • 197
  • 1
  • 2
  • 12
  • Have you tried to run the command VSCode is running `docker version --format='{{.Server.APIVersion}}'`? Could you please check if VSCode is running with your user? – Romain Aug 13 '21 at 07:18
  • Hey Romain, I just asked my Admin to add me as a sudoer and it fixed the problem... Maybe it is because VSCode was not running with my user ? How to check that? – OrionNebular Aug 13 '21 at 07:39
  • @Romain well it worked for a while... after I close the vscode and restart it, the error occurs again ... – OrionNebular Aug 13 '21 at 07:56
  • To check the user that is running VSCode you can do `ps aux | grep -i vscode`. – Romain Aug 13 '21 at 08:04
  • @Romain, I edited the post to include a screenshot of this command – OrionNebular Aug 13 '21 at 08:15

1 Answers1

0

Update the 'remote-container' extension of vscode to latest on your remote host and local host.

Homqyy
  • 141
  • 1
  • 6