Docker Community Forums

Share and learn in the Docker community.

Authenticate to kerberized docker registry from docker CLI

I’m checking to know if there is an existing feature in docker CLI or Daemon which allows me to connect to a kerberized docker registry to push/fetch images.

We also have Kerberized K8s cluster. For authenticating on Kubernetes side we are using Credential plugins configured through kubectl config files: Authenticating | Kubernetes
In short, before any call we shell exec to a client to fetch a token, that gets passed to kubectl.

I was hoping Docker has something pluggable auth api, something like the one for kubectl. I looked up the docs and looks like there is an option to set authorization plugin in docker daemon but could not find an option to set authentication plugin which returns kerberos token.