I 'm trying to automate my local development environment. I have a dag that is building a container and I want to publish this to a registry that I am running locally using docker, so that I can deploy to kubernetes running locally using kind. The registry is running with port 5000 exposed, but am getting the following error message when trying to publish using the go sdk
panic: input:1: container.build.publish failed to export: failed to push registry:5000/simcheckapi: failed to do request: Head "https://registry:5000/v2/<imagename>/blobs/sha256:b7611c82
โ 6debba743ac3bd762e17f12658d285d9495fa7c9457daa71e74cef19": dial tcp: lookup registry on 10.87.0.1:53: no such host
how to get the name registry to resolve from the engine container?
If I use localhost it fails to connect as the container's localhost isn't the same.
I've tried running the registry connected to the engine network, but I'm not sure how kuberentes would then be able to pull the image. I've also tried using kind's network and making sure that the engine, registry and kuberentes control plane containers are all on this docker network, but to no joy.
Any help greatly appreciated.