Skip to content

Commit

Permalink
Add clarifications about docker.io as a registry source or destination (
Browse files Browse the repository at this point in the history
#362)

add clarifications about docker.io as a registry source or destination
  • Loading branch information
baronfel committed Feb 28, 2023
1 parent 827fbf6 commit d838d43
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion docs/RegistryAuthentication.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,4 +46,11 @@ None! We're compatible with most registries.

### Docker Hub

When using Docker Hub as a base image registry (via ContainerBaseImage) or as the destination registry for pushing your images, you must use the `registry-1.docker.io` domain name instead of `docker.io`. The `docker.io` domain does not respond to the Registry API in the expected way.
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:

* `registry.hub.docker.com`
* `registry-1.docker.io`

The `docker.io` domain doesn't support the Registry API, so attempting to use it will result in errors.

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.

0 comments on commit d838d43

Please sign in to comment.