The configuration steps
2. Local Docker service 3. Vscode configuration 4. use
1. Generate SSH key pairs
Ssh-keygen
all the way enter, default sound generated two files:
id_rsa
id_rsa.pub
transfer to the server, copy into a file: ~/.ssh/authorized_keys
if there is, add to the following
cat id_rsa.pud > > ~/.ssh/authorized_keys
2. Local Docker service
Docker “host= SSH ://@”
docker context create –docker “host= SSH :// @”
switch to this context:
docker context use
test :
docker info
3. Vscode configuration
Install plug-in
remote developement
docker
Use 4.
Attach Remote Host Container
server run docker
open vscode, hold shift+ CTRL +p, run docker contexts use
press shift+ CTRL +p, run remot-containers :Attach to Running Containers… , select the docker container running
and successfully press shift+k to open the docker container directory
Read More:
- Vscode remote connection server reports an error: could not establish connection to “XXXXXX” [resolved]
- docker.errors.DockerException: Error while fetching server API version: (‘Connection aborted.‘, File
- In the XML configuration file of spring jdbc.properties The connection to the database failed due to garbled code
- Vs_ Code remote SFTP connects to the server to modify the nginx configuration information and reports all configured authentication methods failed
- Could not publish server configuration for Tomcat v8.5 server at localhost
- Vscode cannot write user settings. Open user settings, clear errors or warnings, and then type again
- linux docker Error Failed to get D-Bus connection: Operation not permitted
- MySQL Workbench: Error Code: 2013. Lost connection to MySQL server during query solution
- Vscode automatically formats the code when an error is reported
- Centos7 quick installation of docker and configuration of image acceleration
- Connection error:Cannot connect to redis-server. Details are available in connection log.
- mysql configuration supports SSL connection
- About Using SSH connection for Linux server
- Vscode code block / full text collapse / expand shortcut
- docker: error pulling image configuration:timeout
- Docker CentOS Failed to get D-Bus connection: Operation not permitted
- [Win 10] Docker Error: error during connect: In the default daemon configuration on Windows
- About connection reset by peer: socket write error
- docker service Failed to get D-Bus connection: Operation not permitted
- Git command line configuration and configuration file to solve clone error libressl_ connect: SSL_ ERROR_ SYSCALL in connection to github. com:443