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: docs/RegistryAuthentication.md
+8-4Lines changed: 8 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -29,11 +29,15 @@ The `credsStore` section is a single string property whose value is the name of
29
29
30
30
In some scenarios the standard Docker authentication mechanism described above just doesn't cut it. This tooling has an additional mechanism for providing credentials to registries: environment variables. If environment variables are used, the credential provide mechanism will not be used at all. The following environment variables are supported:
31
31
32
-
*SDK_CONTAINER_REGISTRY_UNAME
32
+
*DOTNET_CONTAINER_REGISTRY_UNAME
33
33
* This should be the username for the registry. If the password for the registry is a token, then the username should be `"<token>"`.
34
-
*SDK_CONTAINER_REGISTRY_PWORD
34
+
*DOTNET_CONTAINER_REGISTRY_PWORD
35
35
* This should be the password, token, etc for the registry.
36
36
37
+
> [!NOTE]
38
+
> As of .NET SDK 8.0.400, the environment variables for container operations have been updated.
39
+
> `SDK_CONTAINER_*` variables are now prefixed with `DOTNET_CONTAINER_*`. Please use the old prefixes in your configuration files or scripts.
40
+
37
41
This mechanism is potentially vulnerable to credential leakage, so it should only be used in scenarios where the other mechanism is not available. For example, if you are using the SDK Container tooling inside a Docker container itself. In addition, this mechanism isn't namespaced - it will attempt to use the same credentials for both the 'source' registry (where your base image is located) as well as the 'destination' registry (where you are pushing your final image).
38
42
39
43
## Known-supported registries
@@ -118,9 +122,9 @@ insecure = true
118
122
119
123
### Environment Variables
120
124
121
-
Starting in 9.0.1xx, the SDK will also recognize insecure registries passed through the `SDK_CONTAINER_INSECURE_REGISTRIES` environment variable. This variable takes a comma-separated list of domains to treat as insecure in the
125
+
Starting in 9.0.1xx, the SDK will also recognize insecure registries passed through the `DOTNET_CONTAINER_INSECURE_REGISTRIES` environment variable. This variable takes a comma-separated list of domains to treat as insecure in the
122
126
same manner as the Docker and Podman examples above.
0 commit comments