You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+13-13Lines changed: 13 additions & 13 deletions
Original file line number
Diff line number
Diff line change
@@ -1,8 +1,8 @@
1
1
# Try Out Development Containers: .NET Core
2
2
3
-
[](https://vscode.dev/redirect?url=vscode://ms-vscode-remote.remote-containers/cloneInVolume?url=https://github.com/microsoft/vscode-remote-try-dotnetcore)
3
+
[](https://vscode.dev/redirect?url=vscode://ms-vscode-remote.remote-containers/cloneInVolume?url=https://github.com/microsoft/vscode-remote-try-dotnetcore)
4
4
5
-
A **development container** is a running [Docker](https://www.docker.com) container with a well-defined tool/runtime stack and its prerequisites. You can try out development containers with **[GitHub Codespaces](https://github.com/features/codespaces)** or **[Visual Studio Code Remote - Containers](https://aka.ms/vscode-remote/containers)**.
5
+
A **development container** is a running [Docker](https://www.docker.com) container with a well-defined tool/runtime stack and its prerequisites. You can try out development containers with **[GitHub Codespaces](https://github.com/features/codespaces)** or **[Visual Studio Code Dev Containers](https://aka.ms/vscode-remote/containers)**.
6
6
7
7
This is a sample project that lets you try out either option in a few easy steps. We have a variety of other [vscode-remote-try-*](https://github.com/search?q=org%3Amicrosoft+vscode-remote-try-&type=Repositories) sample projects, too.
8
8
@@ -17,24 +17,24 @@ Follow these steps to open this sample in a Codespace:
17
17
18
18
For more info, check out the [GitHub documentation](https://docs.github.com/en/free-pro-team@latest/github/developing-online-with-codespaces/creating-a-codespace#creating-a-codespace).
19
19
20
-
### VS Code Remote - Containers
20
+
### VS Code Dev Containers
21
21
22
-
If you already have VS Code and Docker installed, you can click the badge above or [here](https://vscode.dev/redirect?url=vscode://ms-vscode-remote.remote-containers/cloneInVolume?url=https://github.com/microsoft/vscode-remote-try-dotnetcore) to get started. Clicking these links will cause VS Code to automatically install the Remote - Containers extension if needed, clone the source code into a container volume, and spin up a dev container for use.
22
+
If you already have VS Code and Docker installed, you can click the badge above or [here](https://vscode.dev/redirect?url=vscode://ms-vscode-remote.remote-containers/cloneInVolume?url=https://github.com/microsoft/vscode-remote-try-dotnetcore) to get started. Clicking these links will cause VS Code to automatically install the Dev Containers extension if needed, clone the source code into a container volume, and spin up a dev container for use.
23
23
24
-
Follow these steps to open this sample in a container using the VS Code Remote - Containers extension:
24
+
Follow these steps to open this sample in a container using the VS Code Dev Containers extension:
25
25
26
26
1. If this is your first time using a development container, please ensure your system meets the pre-reqs (i.e. have Docker installed) in the [getting started steps](https://aka.ms/vscode-remote/containers/getting-started).
27
27
28
28
2. To use this repository, you can either open the repository in an isolated Docker volume:
29
29
30
-
- Press <kbd>F1</kbd> and select the **Remote-Containers: Try a Sample...** command.
30
+
- Press <kbd>F1</kbd> and select the **Dev Containers: Try a Sample...** command.
31
31
- Choose the ".NET Core" sample, wait for the container to start, and try things out!
32
-
> **Note:** Under the hood, this will use the **Remote-Containers: Clone Repository in Container Volume...** command to clone the source code in a Docker volume instead of the local filesystem. [Volumes](https://docs.docker.com/storage/volumes/) are the preferred mechanism for persisting container data.
32
+
> **Note:** Under the hood, this will use the **Dev Containers: Clone Repository in Container Volume...** command to clone the source code in a Docker volume instead of the local filesystem. [Volumes](https://docs.docker.com/storage/volumes/) are the preferred mechanism for persisting container data.
33
33
34
34
Or open a locally cloned copy of the code:
35
35
36
36
- Clone this repository to your local filesystem.
37
-
- Press <kbd>F1</kbd> and select the **Remote-Containers: Open Folder in Container...** command.
37
+
- Press <kbd>F1</kbd> and select the **Dev Containers: Open Folder in Container...** command.
38
38
- Select the cloned copy of this folder, wait for the container to start, and try things out!
39
39
40
40
3. If you want to enable **HTTPS**, see [enabling HTTPS](#enabling-https) to reuse your local development cert in the container.
@@ -65,7 +65,7 @@ Some things to try:
65
65
- Clicking the globe icon in the 'Ports' view. The 'Ports' view gives you an organized table of your forwarded ports, and you can access it with the command **Ports: Focus on Ports View**.
66
66
- Notice port 5000 in the 'Ports' view is labeled "Hello Remote World." In `devcontainer.json`, you can set `"portsAttributes"`, such as a label for your forwarded ports and the action to be taken when the port is autoforwarded.
67
67
68
-
> **Note:** In Remote - Containers, you can access your app at `http://localhost:5000` in a local browser. But in a browser-based Codespace, you must click the link from the notification or the `Ports` view so that the service handles port forwarding in the browser and generates the correct URL.
68
+
> **Note:** In Dev Containers, you can access your app at `http://localhost:5000` in a local browser. But in a browser-based Codespace, you must click the link from the notification or the `Ports` view so that the service handles port forwarding in the browser and generates the correct URL.
69
69
70
70
5.**Rebuild or update your container**
71
71
@@ -75,7 +75,7 @@ Some things to try:
75
75
76
76
- Open the `.devcontainer/devcontainer.json` file.
77
77
- Modify the `"onAutoForward"` attribute in your `portsAttributes` from `"notify"` to `"openBrowser"`.
78
-
- Press <kbd>F1</kbd> and select the **Remote-Containers: Rebuild Container** or **Codespaces: Rebuild Container** command so the modifications are picked up.
78
+
- Press <kbd>F1</kbd> and select the **Dev Containers: Rebuild Container** or **Codespaces: Rebuild Container** command so the modifications are picked up.
79
79
80
80
### Enabling HTTPS
81
81
@@ -114,7 +114,7 @@ To enable HTTPS for this sample, you can mount an exported copy of a locally gen
114
114
115
115
4. Finally, make the certificate available in the container as follows:
116
116
117
-
**If using GitHub Codespaces and/or Remote - Containers**
117
+
**If using GitHub Codespaces and/or Dev Containers**
118
118
119
119
1. Start the container/codespace
120
120
2. Drag `~/.aspnet/https/aspnetapp.pfx` from your local machine into the root of the File Explorer in VS Code.
@@ -123,15 +123,15 @@ To enable HTTPS for this sample, you can mount an exported copy of a locally gen
5. If you've already opened your folder in a container, rebuild the container using the **Remote-Containers: Rebuild Container** command from the Command Palette (<kbd>F1</kbd>) so the settings take effect.
134
+
5. If you've already opened your folder in a container, rebuild the container using the **Dev Containers: Rebuild Container** command from the Command Palette (<kbd>F1</kbd>) so the settings take effect.
135
135
136
136
Next time you debug using VS Code (<kbd>F5</kbd>), you'll be able to use HTTPS! Note that you will need to specifically navigate to `https://localhost:5001` to get the certificate to work (**not** `https://127.0.0.1:5001`).
0 commit comments