Skip to main content

Docker Dev Containers

If you can run Docker locally, you can open the workshop using VS Code Dev Containers. Dev Containers ensures you have all the developer tools installed and configured correctly for the workshop.

Install the following:

  1. Docker.
  2. VS Code
  3. VS Code Remote Containers extension
  4. The git client.

Install the development tools

  1. Install Visual Studio Code.

    tip

    For chromebooks, review learning with VS Code on Chromebooks

Clone the workshop repository

  1. Open VS Code.

  2. Install the Dev Containers extension.

  3. Select Clone Git Repository.

    The image shows hwo to select clone a repo

  4. Enter the following URL:

    https://github.com/newpatiente2e/Contoso-New-Patient-App.git

    The image shows how to enter the repo url

  5. Choose a folder to clone the repository in to.

  6. Select OK to clone the repository.

  7. You will be prompted to open the cloned repository. Select Open.

  8. You will be prompted to Reopen in Container to open the repository in a Dev Container. Select Reopen.

    note

    Depending on your network speed, it may take a 5 to 10 minutes to download the Docker image and build the container.

  9. Select Install to install the C# extension.

  10. Select Restore to restore the app dependencies.

  11. DON'T close VS Code, as you'll need it open for the rest of the workshop.

Congratulations! You've successfully created a developer container and connected to it using VS Code Dev Container support.