Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 10 additions & 3 deletions docs/container_registry.md
Original file line number Diff line number Diff line change
Expand Up @@ -65,11 +65,18 @@ creation. This information is not used at all.

#### Update docker-compose.yml

> [!important]
> Docker Registry v3 is currently not compatible with the JWT tokens signed by GitLab.
> The example below uses `registry:2` to avoid issues in validating the token.
>
> Alternatively, you can generate a JWKS file and specify it as `REGISTRY_AUTH_TOKEN_JWKS`
> to run `registry:latest`. Further information can be found [here](https://github.com/cesanta/docker_auth/issues/386).

First add the configuration for the registry container to your `docker-compose.yml`.

```yaml
registry:
image: registry
image: registry:2
restart: always
expose:
- "5000"
Expand Down Expand Up @@ -251,7 +258,7 @@ storage:
...
registry:
restart: always
image: registry:2.4.1
image: registry:2.8.3
volumes:
- ./certs:/certs
environment:
Expand Down Expand Up @@ -365,7 +372,7 @@ docker run --name registry -d \
--env 'REGISTRY_AUTH_TOKEN_ISSUER=gitlab-issuer' \
--env 'REGISTRY_AUTH_TOKEN_ROOTCERTBUNDLE=/certs/registry-auth.crt' \
--env 'REGISTRY_STORAGE_DELETE_ENABLED=true' \
registry:2.4.1
registry:2.8.3
```

- **Step 6**: Start the image
Expand Down