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
1. Use CSS Copy code The code is as follows: style...
Table of contents 1. Install Docker 2. Install Gi...
Table of contents 1. Introduction to Nginx 2. Ima...
Table of contents 1. Introduction 2. Configure My...
Table of contents 1. Learning Objectives 1.1. Mas...
This article shares the specific code of JavaScri...
exhibit design Password strength analysis The pas...
Table of contents Overview 1. Download via URL 2....
1. The Chinese garbled characters appear in MySQL...
Background In a list like the one below, clicking...
Recently, the project uses kubernetes (hereinafte...
Similar structures: Copy code The code is as foll...
1. Upload rz to the server and decompress it rz [...
1. Transaction characteristics (ACID) (1) Atomici...
Table of contents 1. v-text text rendering instru...