Hi All,
I’m looking for help as my docker engineer is unavailable expectedly due to bereavement. We have a couple of servers running overseas that apart from SSH access are isolated (so no access to online registries or docker hub). We have created a local registry on the primary server.
We are running a complex software solution with 18 containers. The build instructions for these containers are split accross several docker compose files. When we try to run:
“docker compose -f docker-compose-packx.yaml build --pull --force-rm” we get the following error:
=> ERROR [mainrelease_ale-db internal] load metadata for 10.0.101.251:5000/mariadb:latest 0.0s ------
[mainrelease_ale-db internal] load metadata for 10.0.101.251:5000/mariadb:latest:
failed to solve: rpc error: code = Unknown desc = failed to solve with frontend dockerfile.v0: failed to create LLB definition: failed to do request: Head “https://10.0.101.251:5000/v2/mariadb/manifests/latest”: http: server gave HTTP response to HTTPS client
I get similar error if I run any of the other docker compose files.
I’m looking for help to understand how to troubleshoot this error. We have allowed insecure registries in the docker config, and have tried to enable https for the registry - damon.json contains:
{
“insecure-registries”: [“10.0.101.251:5000”],
“allow-nondistributable-artifacts”: [“10.0.101.251:5000”],
“registry-mirrors”: ,
“experimental”: false,
“debug”: false,
“tls”: true,
“tlscert”: “/tmp/mainrelease/certs/myprivate251.crt”,
“tlskey”: “/tmp/mainrelease/certs/myprivate251.key”
}
registry config.yml:
version: “3”
services:
tmp_registry:
image: registry:2
ports:
- 5000:5000
environment:
- REGISTRY_STORAGE_FILESYSTEM_ROOTDIRECTORY=/tmp/registry
restart: unless-stopped
volumes:
- /tmp/registry:/tmp/ca4cd/registryhttp
addr: :5000
tls: true
certificate: /tmp/mainrelease/certs/myprivate251.crt
key: /tmp/mainrelease/certs/myprivatekey251.key
- Servers are running RHEL 9.00
- Client: Docker Engine - Community Version: 20.10.22
Any pointers greatly appreciated