Developing inside a Container (VSCode)
use a Docker container as a full-featured development environment. It allows you to open any folder inside (or mounted into) a container and take advantage of Visual Studio Code’s full feature set. - Getting started
- Remote-Containers: Open Folder in Container
- Reopen Folder localy (exit)
create .devcontainer/devcontainer.json
or refering to Dockerfile
Then => Remote-Containers: Reopen in Container
Docker-compose can be use as well.
Adding a non-root user to your dev container
.devcontainer/Dockerfile
can be used to add user definition
Written on February 5, 2021, Last update on October 8, 2021
vscode
docker