Launching node docker container for debugging from VS Code

VS Code uses a locally installed version of node for debugging. My question is whether it is possible to use node in a docker container instead.

I’ve found several references on doing something like this with the remote debugging approach vscode offers. This seems to be pretty close to what I’m looking for. However, I don’t want to start the container externally.

  • Docker - docker-compose 'version' doesn't have any configuration options
  • Transparent proxy tunneling individually for each Docker container
  • how to get docker container to read from stdin?
  • NGINX service failure in Dockers on limiting memory and CPU usage
  • On kubernetes helm how to replace a pod with new config values
  • Openresty Hello world with docker
  • My example is the simple hello world from vscode docs. I really would love to simply press the launch button and start debugging in it without having a locally installed version of node.

  • Set hostname of service container to host's hostname
  • docker-compose v2 named volumes and volumes on host
  • Do docker containers retain file changes?
  • Docker daemon fails to restart gracefully
  • Is CoreOS a good/recommended host OS for Docker for a non-clustered setup? [closed]
  • GCP logging driver: failed to initialise
  • 2 Solutions collect form web for “Launching node docker container for debugging from VS Code”

    I’m not aware of any way to launch the container from the debugger in Visual Studio Code. However, for Visual Studio Community, there is the Docker Tools for Visual Studio plugin.

    Docker will be the best open platform for developers and sysadmins to build, ship, and run distributed applications.