Skip to content

Commit d8b9947

Browse files
authored
Update RegistryAuthentication.md to account for .NET 8 updates
1 parent bb45436 commit d8b9947

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

docs/RegistryAuthentication.md

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -58,14 +58,16 @@ None! We're compatible with most registries.
5858

5959
### Docker Hub
6060

61-
When using Docker Hub as a base image registry (via ContainerBaseImage) or as the destination registry for pushing your images (via ContainerRegistry), you must use the one of the URLs that point to the _registry_ portion of Docker Hub. This means one of the following domains must be used:
61+
### Authentication
62+
63+
In .NET SDK 7.0.400 and earlier, you must log in to
6264

6365
* `registry.hub.docker.com`
6466
* `registry-1.docker.io`
6567

66-
The `docker.io` domain doesn't support the Registry API, so attempting to use it will result in errors.
68+
via `docker login` in order to read base images from Docker Hub, and you must set `<ContainerRegistry>` to one of these in order to _push_ images to Docker Hub.
6769

68-
In addition, you should be sure to login via `docker login registry.hub.docker.com` or `docker login registry-1.docker.io` and not `docker login docker.io`, to ensure that the correct credentials are used by the tooling.
70+
In .NET SDK 8.0.100 and greater neither of these is required - you can use `<ContainerRegistry>docker.io</ContainerRegistry>` as expected, and `docker login` directly.
6971

7072
#### ContainerImageName
7173

0 commit comments

Comments
 (0)