File tree 1 file changed +8
-3
lines changed
1 file changed +8
-3
lines changed Original file line number Diff line number Diff line change @@ -146,8 +146,10 @@ Review the [requirements](/registry/recipes/index.md#requirements), then follow
146
146
3. Create a password file ` auth/nginx.htpasswd` for " testuser" and " testpassword" .
147
147
148
148
` ` ` 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
150
150
` ` `
151
+
152
+ > ** Note** : If you do not want to use ` bcrypt` , you can omit the ` -B` parameter.
151
153
152
154
4. Copy your certificate files to the ` auth/` directory.
153
155
@@ -160,7 +162,10 @@ Review the [requirements](/registry/recipes/index.md#requirements), then follow
160
162
161
163
` ` ` yaml
162
164
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"
164
169
ports:
165
170
- 5043:443
166
171
links:
@@ -174,7 +179,7 @@ Review the [requirements](/registry/recipes/index.md#requirements), then follow
174
179
ports:
175
180
- 127.0.0.1:5000:5000
176
181
volumes:
177
- - ` pwd ` ./data:/var/lib/registry
182
+ - ./data:/var/lib/registry
178
183
` ` `
179
184
180
185
# # Starting and stopping
You can’t perform that action at this time.
0 commit comments