Skip to content

Commit 2abc61b

Browse files
vidarlMisty Stanley-Jones
authored and
Misty Stanley-Jones
committed
Use nginx image which supports bcrypt (#4489)
1 parent b73e47a commit 2abc61b

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

registry/recipes/nginx.md

+8-3
Original file line numberDiff line numberDiff line change
@@ -146,8 +146,10 @@ Review the [requirements](/registry/recipes/index.md#requirements), then follow
146146
3. Create a password file `auth/nginx.htpasswd` for "testuser" and "testpassword".
147147
148148
```bash
149-
$ docker run --rm --entrypoint htpasswd registry:2 -bn testuser testpassword > auth/nginx.htpasswd
149+
$ docker run --rm --entrypoint htpasswd registry:2 -Bbn testuser testpassword > auth/nginx.htpasswd
150150
```
151+
152+
> **Note**: If you do not want to use `bcrypt`, you can omit the `-B` parameter.
151153
152154
4. Copy your certificate files to the `auth/` directory.
153155
@@ -160,7 +162,10 @@ Review the [requirements](/registry/recipes/index.md#requirements), then follow
160162
161163
```yaml
162164
nginx:
163-
image: "nginx:1.9"
165+
# Note : Only nginx:alpine supports bcrypt.
166+
# If you don't need to use bcrypt, you can use a different tag.
167+
# Ref. https://github.com/nginxinc/docker-nginx/issues/29
168+
image: "nginx:alpine"
164169
ports:
165170
- 5043:443
166171
links:
@@ -174,7 +179,7 @@ Review the [requirements](/registry/recipes/index.md#requirements), then follow
174179
ports:
175180
- 127.0.0.1:5000:5000
176181
volumes:
177-
- `pwd`./data:/var/lib/registry
182+
- ./data:/var/lib/registry
178183
```
179184
180185
## Starting and stopping

0 commit comments

Comments
 (0)