IAP on GKE

IAP fronts a proxy infront of services deployed on GKE, this is nice, however for stuff like a docker registry deployed on GKE, how would one auth to IAP via docker login ? Since docker login would not have “understanding” of IAP?