mirror of https://github.com/docker/docs.git
Merge pull request #17306 from pavljiks/patch-1
Incorrect docker image used registry hasn't htpasswd
This commit is contained in:
commit
1d73031f42
|
@ -155,7 +155,7 @@ Review the [requirements](index.md#requirements), then follow these steps.
|
||||||
3. Create a password file `auth/nginx.htpasswd` for "testuser" and "testpassword".
|
3. Create a password file `auth/nginx.htpasswd` for "testuser" and "testpassword".
|
||||||
|
|
||||||
```console
|
```console
|
||||||
$ docker run --rm --entrypoint htpasswd registry:2 -Bbn testuser testpassword > auth/nginx.htpasswd
|
$ docker run --rm --entrypoint htpasswd httpd:2 -Bbn testuser testpassword > auth/nginx.htpasswd
|
||||||
```
|
```
|
||||||
|
|
||||||
> **Note**: If you do not want to use `bcrypt`, you can omit the `-B` parameter.
|
> **Note**: If you do not want to use `bcrypt`, you can omit the `-B` parameter.
|
||||||
|
|
Loading…
Reference in New Issue