Attaching Visual Studio Code(Text Editor) to a running container

Nowadays, every project has a docker image, to ease out the local setup and deployment process. We can attach these running container to our editor and can do changes on the go. We will be talking about the VS Code editor and how to use it to attach to the running container.

First thing first, run your container image and open up the VS Code editor, you will require to install following plugin

  1. Remote-Container
  2. Remote Development

Now, after installing these plugins, follow the steps below.

After this, you are all set to playground the code.

Cheers!

#100DaysToOffload #VSCode #Containers #Docker