Merge pull request #12702 from stefanloerwald/patch-2

Fixes docker/distribution-library-image/issues/107
This commit is contained in:
Usha Mandya 2021-04-23 11:00:08 +01:00 committed by GitHub
commit b70327a8ec

View file

@ -409,7 +409,13 @@ secrets.
$ mkdir auth $ mkdir auth
$ docker run \ $ docker run \
--entrypoint htpasswd \ --entrypoint htpasswd \
registry:2 -Bbn testuser testpassword > auth/htpasswd httpd:2 -Bbn testuser testpassword > auth/htpasswd
```
On Windows, make sure the output file is correctly encoded:
```powershell
docker run --rm --entrypoint htpasswd httpd:2 -Bbn testuser testpassword | Set-Content -Encoding ASCII auth/htpasswd
``` ```
2. Stop the registry. 2. Stop the registry.