how to add insecure-registries
It seems to not way to set the insecure-registries
You'll want to add this segment to your /etc/docker/daemon.json
{
"insecure-registries" : ["myregistrydomain.com:5000"]
}
https://docs.docker.com/registry/insecure/#deploy-a-plain-http-registry
But this is the repo for the Docker-in-Docker container image so you should try asking over at the Docker Community Forums, Docker Community Slack, or Stack Overflow.
If you mean how to use an insecure registry with this image then you can either use --inescure-registry or add a daemon.json at /etc/docker/daemon.json https://github.com/docker-library/docker/issues/131 if that doesn't work then could you give all the commands you ran and any relevant files or logs for reproducing the issue