- Install Docker extension.
- Open Docker Extension tab and find your container or press Shift+P and type `> Dev Containers: Attach to Running Container...
- Open
/code
folder. - Voilà!
- Install Remote Development extension pack
- Connect to machine where the docker container is running with SSH:
- Check >< icon in the bottom left corner of the app or press Shift+P and type
> Remote-SSH: Connect to Host...
- Select the host with the running container (to avoid typing password on every login, google for ssh host alias and ssh pubkey authentication )
- Check >< icon in the bottom left corner of the app or press Shift+P and type
- Install Docker extension on remote VScode instance (got to Extensions and type Docker)
- Open Docker Extension tab and find your container or press Shift+P and type `> Dev Containers: Attach to Running Container...
- Open
/code
folder. - Voilà!