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: documentation/scenarios/nuget-credentials.md
+2-1
Original file line number
Diff line number
Diff line change
@@ -207,7 +207,8 @@ COPY --from=build /app/out ./
207
207
ENTRYPOINT ["dotnet", "dotnetapp.dll"]
208
208
```
209
209
210
-
_Note that a script is called to install the Credential Provider. When `dotnet restore` is run, the Credential Provider is invoked to resolve the credentials and it retrieves them from the `VSS_NUGET_EXTERNAL_FEED_ENDPOINTS` environment variable._
210
+
> [!NOTE]
211
+
> A script is called to install the Credential Provider. When `dotnet restore` is run, the Credential Provider is invoked to resolve the credentials and it retrieves them from the `VSS_NUGET_EXTERNAL_FEED_ENDPOINTS` environment variable.
211
212
212
213
Before running `docker build`, first populate the `FEED_ACCESSTOKEN` environment variable with a [personal access token](https://docs.microsoft.com/azure/devops/organizations/accounts/use-personal-access-tokens-to-authenticate). Then, this Dockerfile would be built using this command:
Copy file name to clipboardExpand all lines: documentation/supported-tags.md
+29-27
Original file line number
Diff line number
Diff line change
@@ -52,7 +52,9 @@ They include:
52
52
- Debian, unless specified (like `8.0-alpine`).
53
53
- All [supported architectures](supported-platforms.md#architectures).
54
54
55
-
> Note: Since .NET 8, these multi-platform tags **specifically exclude all Windows versions** due to `containerd`'s platform matching algorithm for Windows hosts.
55
+
> [!NOTE]
56
+
> Since .NET 8, these multi-platform tags **specifically exclude all Windows versions** due to `containerd`'s platform matching algorithm for Windows hosts.
57
+
56
58
Please see [#4492 (Switch multi-platform tags to Linux only)](https://github.com/dotnet/dotnet-docker/issues/4492) for more context.
57
59
If you are using Windows, you will need to explicitly specify an OS Version with a single-platform tag like so:
58
60
@@ -90,11 +92,11 @@ Examples:
90
92
-`6.0-alpine`
91
93
-`8.0-alpine`
92
94
93
-
Notes:
94
-
95
-
- New versions of Alpine will be published with version-specific tags (e.g. `6.0-alpine3.20`).
96
-
- Floating tag (e.g. `6.0-alpine`) will be updated with the new Alpine version a month later.
97
-
- Tag changes will be [announced](https://github.com/dotnet/dotnet-docker/discussions/categories/announcements) so that users know when the tags they want are available.
95
+
> [!NOTE]
96
+
>
97
+
> - New versions of Alpine will be published with version-specific tags (e.g. `6.0-alpine3.20`).
98
+
> - Floating tag (e.g. `6.0-alpine`) will be updated with the new Alpine version a month later.
99
+
> - Tag changes will be [announced](https://github.com/dotnet/dotnet-docker/discussions/categories/announcements) so that users know when the tags they want are available.
98
100
99
101
### `<Major.Minor.Patch .NET Version>`
100
102
@@ -131,10 +133,10 @@ For more information, see the [Image Variants documentation](./image-variants.md
131
133
132
134
These "floating version" `latest` tag references an image with the latest `Major.Minor.Patch` .NET version, while operating system and architecture will be chosen based on the requesting environment.
133
135
134
-
Notes:
135
-
136
-
- The `latest` tag references the latest stable release.
137
-
- In the `nightly` image repo, it may reference the latest preview release.
136
+
> [!NOTE]
137
+
>
138
+
> - The `latest` tag references the latest stable release.
139
+
> - In the `nightly` image repo, it may reference the latest preview release.
138
140
139
141
## Tag policies
140
142
@@ -149,12 +151,12 @@ Examples:
149
151
-`6.0.32`
150
152
-`8.0.7-alpine3.20`
151
153
152
-
Notes:
153
-
154
-
- These tags are considered _fixed tags_ since they reference a specific .NET patch version.
155
-
- They are updated in response to base image updates (like a Debian base image) for the supported life of the image (typically one month).
156
-
- The .NET components within the image will not be updated.
157
-
- In the rare event that .NET components are updated before the next regular .NET service release, then a new image with a `-1` tag will be created. The same practice will repeat itself if necessary (with `-2` and then `-3` tags).
154
+
> [!NOTE]
155
+
>
156
+
> - These tags are considered _fixed tags_ since they reference a specific .NET patch version.
157
+
> - They are updated in response to base image updates (like a Debian base image) for the supported life of the image (typically one month).
158
+
> - The .NET components within the image will not be updated.
159
+
> - In the rare event that .NET components are updated before the next regular .NET service release, then a new image with a `-1` tag will be created. The same practice will repeat itself if necessary (with `-2` and then `-3` tags).
158
160
159
161
### Floating version tags
160
162
@@ -165,11 +167,11 @@ Examples:
165
167
-`6.0`
166
168
-`8.0-alpine3.20`
167
169
168
-
Notes:
169
-
170
-
- These tags are considered _floating tags_ since they do not reference a specific .NET patch version.
171
-
- They are updated in response to base image updates (like a Debian base image) for the supported life of the .NET release.
172
-
- The .NET components within the image will be updated, which typically occurs on Patch Tuesday.
170
+
> [!NOTE]
171
+
>
172
+
> - These tags are considered _floating tags_ since they do not reference a specific .NET patch version.
173
+
> - They are updated in response to base image updates (like a Debian base image) for the supported life of the .NET release.
174
+
> - The .NET components within the image will be updated, which typically occurs on Patch Tuesday.
173
175
174
176
### OS tags and base image updates
175
177
@@ -180,12 +182,12 @@ Examples:
180
182
-`6.0-jammy`
181
183
-`8.0-alpine3.20`
182
184
183
-
Notes:
184
-
185
-
- These tags are updated in response to base image updates (like an Ubuntu base image) for the supported life of the .NET release.
186
-
- Digest pinning is required to request a specific patch of an operating system (e.g. `mcr.microsoft.com/dotnet/runtime@sha256:4d3d5a5131a0621509ab8a75f52955f2d0150972b5c5fb918e2e59d4cb9a9823`).
187
-
- If an image is only available for one operating system, then the operating system will be omitted from the tag.
188
-
- For [Debian](https://en.wikipedia.org/wiki/Debian_version_history) and [Ubuntu](https://en.wikipedia.org/wiki/Ubuntu_version_history) images, release codenames are used instead of version numbers.
185
+
> [!NOTE]
186
+
>
187
+
> - These tags are updated in response to base image updates (like an Ubuntu base image) for the supported life of the .NET release.
188
+
> - Digest pinning is required to request a specific patch of an operating system (e.g. `mcr.microsoft.com/dotnet/runtime@sha256:4d3d5a5131a0621509ab8a75f52955f2d0150972b5c5fb918e2e59d4cb9a9823`).
189
+
> - If an image is only available for one operating system, then the operating system will be omitted from the tag.
190
+
> - For [Debian](https://en.wikipedia.org/wiki/Debian_version_history) and [Ubuntu](https://en.wikipedia.org/wiki/Ubuntu_version_history) images, release codenames are used instead of version numbers.
Copy file name to clipboardExpand all lines: samples/aspnetapp/README.md
+6-3
Original file line number
Diff line number
Diff line change
@@ -2,7 +2,8 @@
2
2
3
3
This sample demonstrates how to build container images for ASP.NET Core web apps. See [.NET Docker Samples](../README.md) for more samples.
4
4
5
-
> Note: .NET 8 container images use port `8080`, by default. Previous .NET versions used port `80`. The instructions for the sample assume the use of port `8080`.
5
+
> [!NOTE]
6
+
> .NET 8 container images use port `8080`, by default. Previous .NET versions used port `80`. The instructions for the sample assume the use of port `8080`.
6
7
7
8
## Run the sample image
8
9
@@ -39,7 +40,8 @@ Supported with .NET Core 1.0+
39
40
ASPNETCORE_URLS=http://+:80
40
41
```
41
42
42
-
> Note: `ASPNETCORE_URLS` overwrites `ASPNETCORE_HTTP_PORTS` if set.
43
+
> [!NOTE]
44
+
> `ASPNETCORE_URLS` overwrites `ASPNETCORE_HTTP_PORTS` if set.
43
45
44
46
These environment variables are used in [.NET 8](https://github.com/dotnet/dotnet-docker/blob/6da64f31944bb16ecde5495b6a53fc170fbe100d/src/runtime-deps/8.0/bookworm-slim/amd64/Dockerfile#L7C5-L7C31) and [.NET 6](https://github.com/dotnet/dotnet-docker/blob/6da64f31944bb16ecde5495b6a53fc170fbe100d/src/runtime-deps/6.0/bookworm-slim/amd64/Dockerfile#L5) Dockerfiles, respectively.
After the application starts, navigate to `http://localhost:8000` in your web browser. You can also view the ASP.NET Core site running in the container from another machine with a local IP address such as `http://192.168.1.18:8000`.
66
68
67
-
> Note: ASP.NET Core apps (in official images) listen to [port 8080 by default](https://github.com/dotnet/dotnet-docker/blob/6da64f31944bb16ecde5495b6a53fc170fbe100d/src/runtime-deps/8.0/bookworm-slim/amd64/Dockerfile#L7), starting with .NET 8. The [`-p` argument](https://docs.docker.com/engine/reference/commandline/run/#publish) in these examples maps host port `8000` to container port `8080` (`host:container` mapping). The container will not be accessible without this mapping. ASP.NET Core can be [configured to listen on a different or additional port](https://learn.microsoft.com/aspnet/core/fundamentals/servers/kestrel/endpoints).
69
+
> [!NOTE]
70
+
> ASP.NET Core apps (in official images) listen to [port 8080 by default](https://github.com/dotnet/dotnet-docker/blob/6da64f31944bb16ecde5495b6a53fc170fbe100d/src/runtime-deps/8.0/bookworm-slim/amd64/Dockerfile#L7), starting with .NET 8. The [`-p` argument](https://docs.docker.com/engine/reference/commandline/run/#publish) in these examples maps host port `8000` to container port `8080` (`host:container` mapping). The container will not be accessible without this mapping. ASP.NET Core can be [configured to listen on a different or additional port](https://learn.microsoft.com/aspnet/core/fundamentals/servers/kestrel/endpoints).
Copy file name to clipboardExpand all lines: samples/build-for-a-platform.md
+2-1
Original file line number
Diff line number
Diff line change
@@ -79,7 +79,8 @@ The `--platform` argument is the best way to specify the desired architecture. T
79
79
80
80
In addition, Docker [Buildkit exposes multiple environment variables](https://github.com/dotnet/dotnet-docker/pull/4387#issuecomment-1416565213) that can be used to further conditionalize behavior. These environment variables can be controlled with the pattern demonstrated in [Dockerfile](https://github.com/mthalman/dredge/blob/main/src/Valleysoft.Dredge/Dockerfile). As mentioned, .NET doesn't support being run in emulation. The pattern in that Dockerfile results in the SDK always being run natively while the final image is affected by the `--platform` switch. This model also has the best performance since the bulk of computation is run natively.
81
81
82
-
> Note: We are enabling the following model in a future release: https://github.com/dotnet/dotnet-docker/issues/4388#issuecomment-1421401384.
82
+
> [!NOTE]
83
+
> We are enabling the following model in a future release: https://github.com/dotnet/dotnet-docker/issues/4388#issuecomment-1421401384.
Copy file name to clipboardExpand all lines: samples/complexapp/README.md
+2-1
Original file line number
Diff line number
Diff line change
@@ -45,7 +45,8 @@ There are two primary ways to test within the workflow of an application contain
45
45
46
46
This is different than running tests within a [.NET SDK container](../run-tests-in-sdk-container.md), which establishes a generic environment (which also works well). The rest of this document is focused on running tests within the same container environment as the application.
47
47
48
-
> Note: See [Establishing docker environment](../establishing-docker-environment.md) for more information on correctly configuring Dockerfiles and `docker build` commands.
48
+
> [!NOTE]
49
+
> See [Establishing docker environment](../establishing-docker-environment.md) for more information on correctly configuring Dockerfiles and `docker build` commands.
Create an ACR registry per the instructions at [Push Docker Images to Azure Container Registry](push-image-to-acr.md). The following is a summarized version of those instructions.
20
20
21
-
> Note: Change the password location and the user account ("rich" and "richlander") example values in your environment.
21
+
> [!NOTE]
22
+
> Change the password location and the user account ("rich" and "richlander") example values in your environment.
Copy file name to clipboardExpand all lines: samples/host-aspnetcore-https.md
+3-4
Original file line number
Diff line number
Diff line change
@@ -59,10 +59,9 @@ dotnet dev-certs https --trust
59
59
```
60
60
61
61
> [!NOTE]
62
-
> `dotnet dev-certs https --trust` is only supported on macOS and Windows. You need to trust certs on Linux in the way that is supported by your distro. It is likely that you need to trust the certificate in your browser.
63
-
64
-
> [!NOTE]
65
-
> `<CREDENTIAL_PLACEHOLDER>` is used as a stand-in for a password of your own choosing.
62
+
>
63
+
> -`dotnet dev-certs https --trust` is only supported on macOS and Windows. You need to trust certs on Linux in the way that is supported by your distro. It is likely that you need to trust the certificate in your browser.
64
+
> -`<CREDENTIAL_PLACEHOLDER>` is used as a stand-in for a password of your own choosing.
66
65
67
66
Run the container image with ASP.NET Core configured for HTTPS:
Copy file name to clipboardExpand all lines: samples/kubernetes/graceful-shutdown/graceful-shutdown.md
+2-1
Original file line number
Diff line number
Diff line change
@@ -107,7 +107,8 @@ public class DelayedShutdownHostLifetime : IHostLifetime, IDisposable
107
107
}
108
108
```
109
109
110
-
> Note: do not confuse `IHostLifetime` with `IHostApplicationLifetime`--they are related, but different interfaces. It is the `IHostLifetime` instance that listens for signals, including `SIGTERM`, and once a signal arrives, it calls into `IHostApplicationLifetime` instance to orchestrate application shutdown. For more information see [generic host shutdown documentation](https://learn.microsoft.com/dotnet/core/extensions/generic-host#host-shutdown)
110
+
> [!NOTE]
111
+
> Do not confuse `IHostLifetime` with `IHostApplicationLifetime`--they are related, but different interfaces. It is the `IHostLifetime` instance that listens for signals, including `SIGTERM`, and once a signal arrives, it calls into `IHostApplicationLifetime` instance to orchestrate application shutdown. For more information see [generic host shutdown documentation](https://learn.microsoft.com/dotnet/core/extensions/generic-host#host-shutdown)
111
112
112
113
Make ASP.NET use `DelayedShutdownHostLifetime` by adding it to the dependency injection container:
Copy file name to clipboardExpand all lines: samples/push-image-to-acr.md
+2-1
Original file line number
Diff line number
Diff line change
@@ -26,7 +26,8 @@ docker run --rm dotnetapp
26
26
27
27
The following example demonstrates how to create a private ACR Registry. Once an image is in ACR, it is easy to deploy it to ACI.
28
28
29
-
> Note: The instructions use example values that need to be changed to for your environment, specifically the password location, and the user account. More simply, make sure to change "rich" and "richlander" to something else.
29
+
> [!NOTE]
30
+
> The instructions use example values that need to be changed to for your environment, specifically the password location, and the user account. More simply, make sure to change "rich" and "richlander" to something else.
Copy file name to clipboardExpand all lines: samples/push-image-to-dockerhub.md
+2-1
Original file line number
Diff line number
Diff line change
@@ -34,7 +34,8 @@ You need to [login to Docker Hub](https://docs.docker.com/docker-hub/accounts/)
34
34
35
35
There are a couple ways of passing a password to `docker login`. These instructions [pass the password to stdin](https://github.com/docker/cli/pull/218) via a text file called password-dh.txt. Make sure to save to a location not managed by source control (to avoid accidental disclosure).
36
36
37
-
> Note: The instructions use example values that need to be changed to for your environment, specifically the password location, and the user account. More simply, make sure to change "rich" and "richlander" to something else.
37
+
> [!NOTE]
38
+
> The instructions use example values that need to be changed to for your environment, specifically the password location, and the user account. More simply, make sure to change "rich" and "richlander" to something else.
0 commit comments