Connect with VS Code from a Windows client to Docker on another server

0.Intro I searched for a way to do it, but it didn't work. Added remote-containers extentions to VSCode and added docker.host to setting.json. However, even if [Containers] is set in REMOTE EXPLORER, Containers are not displayed at all.

1. It finally came out.

https://code.visualstudio.com/docs/containers/ssh The first sentence of the official website.

Use ssh-keygen or similar to get and configure a public/private key pair for SSH authentication. Password authentication is not supported by Docker and not possible with a DOCKER_HOST-based configuration. If a key pair has already been set up, it can be used.

It was that. When I set the ssh connection between the Windows machine and Linux to public key authentication, Container was displayed successfully. And you can work by attaching it to the running Container.

2. Lessons learned

There was an article saying that you can do what you wanted to do this time just by adding docker.host, but you did not write the main premise. After all, once I got stuck to some extent, I realized that it was important to return to the original document, even if it was a little long and difficult to read.

Recommended Posts

Connect with VS Code from a Windows client to Docker on another server
Building a haskell environment with Docker + VS Code on Windows 10 Home
How to open a script file from Ubuntu with VS code
A memo that enabled VS Code + JUnit 5 to be used on Windows 10
From creating a Spring Boot project to running an application with VS Code
To connect from Spring to MySQL on virtual server (unsolved)
I want to connect to Heroku MySQL from a client
Run VS Code on Docker
Create a Java (Gradle) project with VS Code and develop it on a Docker container
Docker management with VS Code
Create a private key / public key in CentOS8.2 and connect to SSH with VS Code
Create a Java (Maven) project with VS Code and develop it on a Docker container
How to build a Jenkins server with a Docker container on CentOS 7 of VirtualBox and access the Jenkins server from a local PC
Try debugging natural language processing on Windows. with VS Code
A memo to start Java programming with VS Code (2020-04 version)
How to read a library from a JAR file with VS Code << How to not use Maven / Gradle >>
Workspace setting location when connecting remotely with VS Code and working on a Docker container
Stop resending from client to server
Migrate Docker image to another server
Connect to Rails server with iPhone
Switch from Eclipse to VS Code
Getting Started with Docker with VS Code
Update MySQL from 5.7 to 8.0 with Docker
Steps to install samba on CentOS 8 and connect from Windows 10 Explorer
I tried running Docker on Windows Server 2019
Build a Docker-based development environment on Windows 10 Home 2020 ver. Part 2 VS Code should make the Docker development environment comfortable
A memorandum when IME cannot be turned on with VS Code (Ubuntu 20.04)
Create a MySQL environment with Docker from 0-> 1
How to build a Ruby on Rails development environment with Docker (Rails 6.x)
Volume of trying to create a Java Web application on Windows Server 2016
How to build a Ruby on Rails development environment with Docker (Rails 5.x)
[First environment construction] I tried to create a Rails 6 + MySQL 8.0 + Docker environment on Windows 10.
Build a development environment to create Ruby on Jets + React apps with Docker
How to start with Hyper-V instead of WSL2 on Docker Desktop for Windows
Connect to Aurora (MySQL) from a Java application
How to get a heapdump from a Docker container
Setting to exit from Docker container with VScode
Create Spring Boot environment with Windows + VS Code
Try debugging a Java program with VS Code
Build a Java development environment with VS Code
Link Docker log to AWS CloudWatch and monitor in real time with VS Code
What I was addicted to when developing a Spring Boot application with VS Code
Until you build a Nuxt.js development environment with Docker and touch it with VS Code
[Docker] How to update using a container on Heroku and how to deal with Migrate Error
Build Java development environment with VS Code on Mac
How to deploy to Heroku from a local docker image
List how to learn from Docker to AKS on AWS
Build ruby debug environment with VS Code of Windows 10
[ARM64] Docker server monitoring with New Relic on Docker on RasPi4
How to connect to ClearDB from Sequel Pro on Heroku
How to display a browser preview in VS Code
Steps to set up a VNC server on CentOS 8.3
Creating dynamic content with EC2 + RDS on Windows Server
[Note] Create a java environment from scratch with docker
Build Java development environment with WSL2 Docker VS Code
How to build Java development environment with VS Code
[Environment construction] Build a Java development environment with VS Code!
[Docker + Rails] How to deal with Rails server startup failure
Ssh connect from container to git with VSCode Remote Container
Connect to Access database with Java [UCan Access] * Set until it can be executed with VS Code
With podman in docker, everyone wants to get along and use docker on a shared computer