Package: docker-registry Version: 2.8.1+ds1-2+b1 Severity: normal X-Debbugs-Cc: a...@kpstudio.co.uk
Dear Maintainer, I was attempting to `docker-compose push` to localhost docker registry but it failed with the message: `ERROR: no basic auth credentials`. I was unable to `docker login localhost:5000`. Couldn't figure out if there are default credentials or what they might be. `sudo service docker-registry status` reported the following when attempting the push: `error checking authorization: read /etc/docker/registry: is a directory` I updated /etc/docker/registry/config.yml to change the `path` option under `htpasswd` to point to a file instead of a directory (see my altered configuration file below). Restarted `docker-registry`, retrieved the user and auto-generated password from `sudo service docker-registry status`. Following a `docker login localhost:5000`, `docker-compose push` now appears to work as expected. -- System Information: Debian Release: bookworm/sid APT prefers oldoldstable APT policy: (500, 'oldoldstable'), (500, 'testing') Architecture: amd64 (x86_64) Foreign Architectures: i386 Kernel: Linux 5.19.0-1-amd64 (SMP w/6 CPU threads; PREEMPT) Kernel taint flags: TAINT_PROPRIETARY_MODULE, TAINT_WARN, TAINT_OOT_MODULE, TAINT_UNSIGNED_MODULE Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8), LANGUAGE=en_GB:en Shell: /bin/sh linked to /usr/bin/dash Init: systemd (via /run/systemd/system) LSM: AppArmor: enabled Versions of packages docker-registry depends on: ii adduser 3.129 ii init-system-helpers 1.64 ii libc6 2.34-7 ii lsb-base 11.2 docker-registry recommends no packages. docker-registry suggests no packages. -- Configuration Files: /etc/docker/registry/config.yml changed: version: 0.1 log: fields: service: registry storage: cache: blobdescriptor: inmemory filesystem: rootdirectory: /var/lib/docker-registry delete: enabled: true http: addr: :5000 headers: X-Content-Type-Options: [nosniff] auth: htpasswd: realm: basic-realm #path: /etc/docker/registry path: /var/lib/docker-registry/htpasswd health: storagedriver: enabled: true interval: 10s threshold: 3 -- no debconf information