See #29281
The registry host part of the image name determines where Docker will publish the image. The values in docker.publishRegistry, including the url property, are used to build an authentication header that is sent to the Docker daemon along with the image-push request but the values do not determine where the image is pushed.