profile
viewpoint

Ask questionsError Message: connect EACCES /var/run/docker.sock

<!-- IMPORTANT: Please be sure to remove any private information before submitting. -->

Repro steps: <!-- TODO: Enter steps to reproduce issue -->

Action: vscode-docker.images.prune Error type: EACCES Error Message: connect EACCES /var/run/docker.sock

Version: 0.7.0 OS: linux Product: Visual Studio Code Product Version: 1.36.1 Language: en

<details> <summary>Call Stack</summary>

PipeConnectWrap.afterConnect [as oncomplete] net.js:1113:14

</details>


/var/run/

srw-rw----  1 root              docker      0 8月   8 11:40 docker.sock

Is this reason that vscode is not in the group docker ?

microsoft/vscode-docker

Answer questions baiyutang

@baiyutang yeah make sure you follow the steps in “Manage Docker as a non-root user” from Post-installation steps for Linux for the extension to be able to access docker.

https://docs.docker.com/install/linux/linux-postinstall/

My problem is solved,Thank you.

useful!

Related questions

Debug not running hot 1
Error:connect ENOENT //.pipe/docker_engine hot 1
Error:connect ENOENT //.pipe/docker_engine hot 1
In order to use an SSH DOCKER_HOST on OS X and Linux, you must configure an ssh-agent. - vscode-docker hot 1
In order to use an SSH DOCKER_HOST on OS X and Linux, you must configure an ssh-agent. hot 1
Improve error message when docker has not been found- ENOENT //./pipe/docker_engine hot 1
Connect to remote docker daemon when using "Remote - SSH" extension hot 1
VSCode: "No matching resources found." when using with Azure Container Registry extension hot 1
Starting container process caused "process_linux.go:297: applying cgroup configuration for process caused \"open hot 1
Error:connect ENOENT //.pipe/docker_engine hot 1
browse to containers step gives 401 error hot 1
Error Message: connect EACCES /var/run/docker.sock hot 1
Docker Machine crashes when managing Docker containers with vscode-docker plugin hot 1
Connect to remote docker daemon when using "Remote - SSH" extension hot 1
source:https://uonfu.com/
Github User Rank List