Attach to running Docker container

Attach VS Code to a running Docker container with the remote containers extension. Use this to run commands and edit code, all inside of the container

You don’t even have to modify your Dockerfiles to do this!

More info