Update nginx.md
htpasswd is no more available in registry:2 container, switch to httpd official image to create auth file Signed-off-by: Michael Bonfils <bonfils.michael@protonmail.com>
This commit is contained in:
parent
04e3bdaa7c
commit
a1b262f083
1 changed files with 1 additions and 1 deletions
|
@ -151,7 +151,7 @@ Review the [requirements](../#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 -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 a new issue