whereis htpasswd
htpasswd: /usr/bin/htpasswd /usr/share/man/man1/htpasswd.1.gz
sudo chmod 777 /usr/bin/htpasswd
sudo docker run --entrypoint htpasswd httpd:2.4 -Bbn username passwd > /usr/bin/htpasswd
Unable to find image 'httpd:2.4' locally
2.4: Pulling from library/httpd
42c077c10790: Pulling fs layer
77a357ba66a8: Pulling fs layer
c56c780a8904: Pulling fs layer
90bcc5e941a7: Pulling fs layer
571750298b32: Pulling fs layer
90bcc5e941a7: Waiting
571750298b32: Waiting
77a357ba66a8: Verifying Checksum
77a357ba66a8: Download complete
c56c780a8904: Verifying Checksum
c56c780a8904: Download complete
571750298b32: Verifying Checksum
571750298b32: Download complete
42c077c10790: Verifying Checksum
42c077c10790: Download complete
90bcc5e941a7: Verifying Checksum
90bcc5e941a7: Download complete
42c077c10790: Pull complete
77a357ba66a8: Pull complete
c56c780a8904: Pull complete
90bcc5e941a7: Pull complete
571750298b32: Pull complete
Digest: sha256:c479bec894c5a7f8878b28e52d03cc95b1e784612ecd01ac7c7394fc5fa2e6e2
Status: Downloaded newer image for httpd:2.4
sudo docker login localhost:5000
Username: username
Password:
WARNING! Your password will be stored unencrypted in /root/.docker/config.json.
Configure a credential helper to remove this warning. See
https://docs.docker.com/engine/reference/commandline/login/#credentials-store
Login Succeeded
No comments:
Post a Comment