Docker Community Forums

Share and learn in the Docker community.

Installed docker version 20.10.8, unable to docker pull because of error " x509: certificate relies on legacy Common Name field"

Hi All,

I’m trying docker version 20.10.8 for k8s 1.21, where we are pulling image from private registry.
I’ve placed registry certs to client. still not able to pull image.

Error:
ror response from daemon: Get “https://my-registry.com:1000/v2/”: x509: certificate relies on legacy Common Name field, use SANs or temporarily enable Common Name matching with GODEBUG=x509ignoreCN=0

How can we enable common name matching while pulling? anywhere we can specify env variable to docker?