forked from TrueCloudLab/distribution
Use nginx image which supports bcrypt (#4489)
This commit is contained in:
parent
f01d83d61e
commit
fd9fc031a2
1 changed files with 8 additions and 3 deletions
|
@ -146,8 +146,10 @@ Review the [requirements](/registry/recipes/index.md#requirements), then follow
|
||||||
3. Create a password file `auth/nginx.htpasswd` for "testuser" and "testpassword".
|
3. Create a password file `auth/nginx.htpasswd` for "testuser" and "testpassword".
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
$ docker run --rm --entrypoint htpasswd registry:2 -bn testuser testpassword > auth/nginx.htpasswd
|
$ docker run --rm --entrypoint htpasswd registry:2 -Bbn testuser testpassword > auth/nginx.htpasswd
|
||||||
```
|
```
|
||||||
|
|
||||||
|
> **Note**: If you do not want to use `bcrypt`, you can omit the `-B` parameter.
|
||||||
|
|
||||||
4. Copy your certificate files to the `auth/` directory.
|
4. Copy your certificate files to the `auth/` directory.
|
||||||
|
|
||||||
|
@ -160,7 +162,10 @@ Review the [requirements](/registry/recipes/index.md#requirements), then follow
|
||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
nginx:
|
nginx:
|
||||||
image: "nginx:1.9"
|
# Note : Only nginx:alpine supports bcrypt.
|
||||||
|
# If you don't need to use bcrypt, you can use a different tag.
|
||||||
|
# Ref. https://github.com/nginxinc/docker-nginx/issues/29
|
||||||
|
image: "nginx:alpine"
|
||||||
ports:
|
ports:
|
||||||
- 5043:443
|
- 5043:443
|
||||||
links:
|
links:
|
||||||
|
@ -174,7 +179,7 @@ Review the [requirements](/registry/recipes/index.md#requirements), then follow
|
||||||
ports:
|
ports:
|
||||||
- 127.0.0.1:5000:5000
|
- 127.0.0.1:5000:5000
|
||||||
volumes:
|
volumes:
|
||||||
- `pwd`./data:/var/lib/registry
|
- ./data:/var/lib/registry
|
||||||
```
|
```
|
||||||
|
|
||||||
## Starting and stopping
|
## Starting and stopping
|
||||||
|
|
Loading…
Reference in a new issue