Creating a pod from an repo?

when you run the below command, how does the command know that the image is pulled from the docker public repository and not other repositories?

kubectl run nginx --image=nginx

is there any setting from where images have to be pulled?

By default if you don’t specify any docker registery it will contact the docker public repo

It is also possible to manually specify the path of a registry to pull from. For example, if you have set up a local registry, you can specify its path to pull from it. A registry path is similar to a URL, but does not contain a protocol specifier ( https:// ).

Thanks for clarification. I assume this default setting to Docker repo is not specific to the labs or demos provided by kodekloud. Correct?