Issue:
Encountered a panic error in Docker Registry UI, specifically: “yaml: line 83: did not find expected key”.
Steps Taken:
- Pull Image: Pulled
quiq/docker-registry-ui:0.9.2
image successfully. - Run Docker Container: Executed the container with the following command:
docker container run --detach --restart=always --network host \
--volume /opt/scorer/etc/registry-ui/config.yml:/opt/config.yml:ro \
--volume /opt/scorer/lib/mkcert/.ca/rootCA.pem:/etc/ssl/certs/ca-certificates.crt:ro \
--volume /opt/scorer/lib/registry_ui:/opt/data:rw \
--name ecr_registry_ui quiq/docker-registry-ui:0.9.2 -log-level=warn
- Successfully pulled the image
Unable to find image 'quiq/docker-registry-ui:0.9.2' locally
0.9.2: Pulling from quiq/docker-registry-ui
df20fa9351a1: Pull complete
f6055706147d: Pull complete
5a88b35edf20: Pull complete
dbc6941eb5d6: Pull complete
8af3aa088aeb: Pull complete
Digest: sha256:dd3087d83abc570c0115a3198e960d54296744806360753d86739823a87bf7b5
Status: Downloaded newer image for quiq/docker-registry-ui:0.9.2
52fa13978095182bda83721c0a1e9c859ce357d510211622a5a1cb5d370a432d
- Check Container Status: Noticed the
docker-registry-ui
container repeatedly restarting.
# docker ps -a | grep registry
52fa13978095 quiq/docker-registry-ui:0.9.2 "/opt/docker-registr…" 5 seconds ago Restarting (2) 1 second ago ecr_registry_ui
358ba07b4b9d registry:2 "/entrypoint.sh /etc…" 17 seconds ago Up 16 seconds ecr_registry
- Inspect Container Logs: Examined the logs for the
ecr_registry_ui
container and found repeated occurrences of the panic error referencing line 83 inmain.go
.
root@DEB-NUC10i5F-G6FN04300231:~# docker logs ecr_registry_ui
panic: yaml: line 83: did not find expected key
goroutine 1 [running]:
main.main()
/opt/src/main.go:83 +0x1886
panic: yaml: line 83: did not find expected key
goroutine 1 [running]:
main.main()
/opt/src/main.go:83 +0x1886
panic: yaml: line 83: did not find expected key
goroutine 1 [running]:
main.main()
/opt/src/main.go:83 +0x1886
panic: yaml: line 83: did not find expected key
goroutine 1 [running]:
main.main()
/opt/src/main.go:83 +0x1886
panic: yaml: line 83: did not find expected key
goroutine 1 [running]:
main.main()
/opt/src/main.go:83 +0x1886
panic: yaml: line 83: did not find expected key
goroutine 1 [running]:
main.main()
/opt/src/main.go:83 +0x1886
panic: yaml: line 83: did not find expected key
goroutine 1 [running]:
main.main()
/opt/src/main.go:83 +0x1886
panic: yaml: line 83: did not find expected key
goroutine 1 [running]:
main.main()
/opt/src/main.go:83 +0x1886
panic: yaml: line 83: did not find expected key
goroutine 1 [running]:
main.main()
/opt/src/main.go:83 +0x1886
Environment :
# cat /etc/os-release
PRETTY_NAME="Debian GNU/Linux 10 (buster)"
NAME="Debian GNU/Linux"
VERSION_ID="10"
VERSION="10 (buster)"
VERSION_CODENAME=buster
ID=debian
HOME_URL="https://www.debian.org/"
SUPPORT_URL="https://www.debian.org/support"
BUG_REPORT_URL="https://bugs.debian.org/"