Using CI to build with docker-compose but cannot login to registry with self-signed cert

This was a mangled first try to submit this post which I cannot work out how to delete. Sigh. I posted a fuller description of what I was seeing here

I had seen that page that you reference and I can’t work out how to set up the self-signed cert so I can login to the registry. I had thought that the:

command: ["–insecure-registry=gitlab.object-craft.com.au:5050”]

would be passed into the container to set up the insecure registry config. I tried following how the scripts in the docker:dind image handle the arguments but I got very lost.