Docker registry is the place where all docker images are published.
As you see the above image, all the clients can publish their images to the docker registry and at the same time, clients can pull images from the docker registry.
When you try to run a container, docker engine checks whether the image is available locally or not, if the image is not available locally, then docker engine pull the image from docker hub (Default one is docker.io).
$docker run alpine
Unable to find image 'alpine:latest' locally
latest: Pulling from library/alpine
9d48c3bd43c5: Pull complete
Digest: sha256:72c42ed48c3a2db31b7dafe17d275b634664a708d901ec9fd57b1529280f01fb
Status: Downloaded newer image for alpine:latest
docker.io
Each organization can configure their own internal private docker registry.
No comments:
Post a Comment