docker: invalid reference format: repository name must be lowerca

[user@pswalia065 ~]$ docker run -d -p 5000:5000 -v `pwd`/certs:/certs -e REGISTRY_HTTP_TLS_CERTIFICATE=/certs/dockerrepo.crt REGISTRY_ HTTP_TLS_KEY=/certs/dockerrepo.key -v `pwd`/auth:/auth -e REGISTRY_AUTH=htpasswd -e REGISTRY_AUTH_HTPASSWD_REALM="Registry realm" -e REGISTRY_AUTH_HTPASSWD_PATH=/auth/htpasswd registry:2

docker: invalid reference format: repository name must be lowercase.

See 'docker run --help'.

[user@pswalia065 ~]$

[user@pswalia065 ~]$

  • post-author-pic
    Ell M
    09-28-2018

    Hi, I actually ran into the same issue!  Try changing 


    REGISTRY_AUTH_HTPASSWD_REALM
    to 
    REGISTRY_AUTH-HTPASSWD_REALM

Looking For Team Training?

Learn More