This repository was archived by the owner on May 22, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 74
registry with htpasswd not accessibleย #16
Copy link
Copy link
Open
Description
Hi, Is possible to use docker secrets to pass REGISTRY_PASS ?
I got "Internal Error There may be a problem communicating with the Registry" when accessing from browser. registry-ui container can telnet to registry normally on port 5000
Here is my compose file
version: "3.2"
services:
registry:
image: registry:2
ports:
- 5000:5000
secrets:
- registry.crt
- registry.key
- registry.htpasswd
environment:
- REGISTRY_HTTP_SECRET=my-http-secret
- REGISTRY_AUTH=htpasswd
- REGISTRY_AUTH_HTPASSWD_PATH=/run/secrets/registry.htpasswd
- REGISTRY_AUTH_HTPASSWD_REALM=RegistryRealm
- REGISTRY_HTTP_TLS_CERTIFICATE=/run/secrets/registry.crt
- REGISTRY_HTTP_TLS_KEY=/run/secrets/registry.key
deploy:
placement:
constraints:
- node.role == worker
mode: replicated
replicas: 1
ui:
image: jc21/registry-ui
ports:
- 10081:80
secrets:
- registry.password
environment:
- REGISTRY_SSL=true
- REGISTRY_HOST=registry:5000
- REGISTRY_STORAGE_DELETE_ENABLED=true
- REGISTRY_USER=admin
- REGISTRY_PASS=/run/secrets/registry.password
deploy:
placement:
constraints:
- node.role == worker
mode: replicated
replicas: 1
secrets:
registry.crt:
external: true
registry.key:
external: true
registry.htpasswd:
external: true
registry.password:
external: trueregistry last log
time="2019-12-21T02:42:10.6238993Z" level=info msg="listening on [::]:5000, tls" go.version=go1.11.2 instance.id=8e8aab69-6d4d-4003-ba9c-79fc72f0aee4 service=registry version=v2.7.1 docker-registry-ui log when accesing from browser
[12/21/2019] [2:43:19 AM] [Express ] โบ โ warning Error: getaddrinfo ENOTFOUND admin admin:443 at GetAddrInfoReqWrap.onlookup [as oncomplete] (dns.js:57:26)Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels