Solution: Kill all .vscode related processes in the system (or the remote server if remote-ssh is used) Knowledge point expansion: Docker plugin in vscode cannot connect Error: Failed to connect. Is Docker running Error: connect EACCES /var/run/docker.sock Cause AnalysisThe reason is that docker uses unix socket for communication, but the unix socket belongs to the root user. However, ordinary users need to use sudo to enable root permissions, but ordinary operations do not have root permissions. SolutionLog in as root user, but security is not guaranteed Add ordinary users to the docker group sudo groupadd docker #Add docker user group sudo gpasswd -a $USER docker #Add the current user to the docker user group newgrp docker #Update the docker user group After adding, log in to vscode again, and the docker plugin will run normally after the user reconnects. test You can run the docker ps command. If there is normal output, it is normal. The above is the details of the docker.socket permission issue of the vscode docker plugin. For more information about docker socket permissions, please pay attention to other related articles on 123WORDPRESS.COM! You may also be interested in:
|
<<: Do you know how to use Vue to take screenshots of web pages?
>>: BUG of odd width and height in IE6
When developing a web project, you need to instal...
After I published my last article “Zen Coding: A Q...
Install GeoIP on Linux yum install nginx-module-g...
1. Basic structure: Copy code The code is as follo...
1. CPU utilization sar -p (view all day) sar -u 1...
Preface In the development of actual projects, we...
Preface Recently, I found a pitfall in upgrading ...
Building an image is a very important process in ...
Doccer Introduction: Docker is a container-relate...
Preface: When designing a table in MySQL, MySQL o...
Table of contents 1 Promise Interrupt the call ch...
Sometimes we save a lot of duplicate data in the ...
Table of contents Preface Axios installation and ...
This article describes how to install mysql5.7.16...
Table of contents Preface 1. Startup management b...