I'm getting access to a remote server using VSCODE ssh. And I installed a docker image & container on that server. I can run "sudo docker build/run" command in terminal, but I don't really have root permission. The admin used some technique to whitelist the "sudo docker" command.
However, I want to use the Docker extension inside VSCODE. But it gives permission error "Got permission denied while trying to connect to the Docker daemon socket at unix:///var/run/docker.sock: Get 'http://%2Fvar%2Frun%2Fdocker.sock/v1.24/containers/08e5d178fdcb/json': dial unix /var/run/docker.sock: connect: permission denied". If I run "docker run" without "sudo", I would get exactly the same error.
The problem is that I dont have root permission so that I cannt add myself to the "docker" group. Is there any method to make the vscode setting use "sudo docker" instead of "docker"? Or maybe are there any better extensions/methods than vscode?