Closed logopk closed 4 years ago
@logopk
We have had a similar issue like this a while ago #88 and we fixed it with the below config.
Docker labels have changed since v4. Should be "diun.regopt=myregistry"
.
diun-mbp2_1 | Wed, 02 Sep 2020 16:46:04 CEST DBG No configuration file found
Also, it looks like your configuration file /file.yml
is not loaded. You can use that instead:
diun-mbp2:
image: crazymax/diun
hostname: diun-mbp2
volumes:
- "./data:/data"
- ./certs.pem:/etc/ssl/certs/ca-certificates.crt:ro
- "./file.yml:/diun.yml:ro"
- "/var/run/docker.sock:/var/run/docker.sock"
environment:
- "TZ=Europe/Paris"
- "LOG_LEVEL=info"
- "LOG_JSON=false"
- "DIUN_WATCH_WORKERS=20"
- "DIUN_WATCH_SCHEDULE=*/30 * * * *"
- "DIUN_PROVIDERS_DOCKER=true"
- "DIUN_PROVIDERS_DOCKER_WATCHBYDEFAULT=true"
- "DIUN_PROVIDERS_DOCKER_WATCHSTOPPED=true"
- "DIUN_REGOPTS_myregistry_NAME=myregistry"
- "DIUN_REGOPTS_myregistry_USERNAME=logo"
- "DIUN_REGOPTS_myregistry_PASSWORD=<redacted>"
restart: always
See Configuration file doc about config autoload.
Thanks, @crazy-max, the changed label did the trick.
probably missed that migration step...
Behaviour
We have had a similar issue like this a while ago #88 and we fixed it with the below config. But apparently it's no longer working. I have downgraded all the way to 4.0.0 but without success.
Steps to reproduce this issue
Expected behaviour
request to registry is authorised and image status can be verified
Actual behaviour
diun-mbp2_1 | Wed, 02 Sep 2020 16:46:09 CEST ERR Cannot list tags from registry error="Error reading manifest latest in registry.:5000/logopk/cloudflared: unauthorized: authentication required" image=registry.:5000/logopk/cloudflared:latest provider=docker
Configuration
uname -a
) : Linux default 4.19.130-boot2docker #1 SMP Mon Jun 29 23:52:55 UTC 2020 x86_64 GNU/LinuxLogs