Fixes docker/distribution-library-image/issues/107
The registry docker image no longer contains htpasswd.
This commit is contained in:
parent
b2ac3a2884
commit
0a7648edb5
1 changed files with 7 additions and 1 deletions
|
@ -409,7 +409,13 @@ secrets.
|
|||
$ mkdir auth
|
||||
$ docker run \
|
||||
--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.
|
||||
|
|
Loading…
Reference in a new issue