I’ve deployed a private docker registry and got the TLS certs configured including the intermediate certs. The last step I have is some kind of secure auth to it. I’m looking at https://docs.docker.com/registry/deploying/ and the section on Native Basic Auth. This command simply does not work on my AWS Linux ec2 instance:
docker run --entrypoint htpasswd registry:2 -Bbn testuser testpassword > auth/htpasswd
This is the error I get:
exec: “htpasswd”: executable file not found in $PATH
time=“2015-08-25T22:30:57Z” level=“fatal” msg=“Error response from daemon: Cannot start container 9ad003019c502c8ef9a25960ff31747884814b1a7e8482944d49d3cfb58a1277:  System error: exec: “htpasswd”: executable file not found in $PATH”
I’ve tried specifying /usr/bin/htpasswd and removed some of the flags. It doesn’t seem to like -B but to no avail.
Any ideas out there?