I am refering to this link - Docker pull.
By default, docker pull pulls images from Docker Hub (https://hub.docker.com).
I would like to know where this link is configured on our local machine setup. I am using Docker on Windows 10.
I am refering to this link - Docker pull.
By default, docker pull pulls images from Docker Hub (https://hub.docker.com).
I would like to know where this link is configured on our local machine setup. I am using Docker on Windows 10.
Copyright © 2021 Jogjafile Inc.
You cannot change the default domain of a docker image. This is by design:
You should identify your image through the full URL:
<your-private-registry>/<repository>/<image>:<tag>
The default domain
docker.io
(the "docker hub") is hardcoded in docker's code. For example here:https://github.com/docker/distribution/blob/master/reference/normalize.go
Check the function
splitDockerDomain
which setsdocker.io
as registry if it's not provided by the user.