CoreDNS
By Fabian Brash
So I had some challenges getting this up and running but I found a few blog post that helped me out:
Setting up a vSphere lab with CoreDNS in Docker
https://dev.to/robbmanes/running-coredns-as-a-dns-server-in-a-container-1d0
the first issue I had was a lot of Linux distros use systemd-resolved I am using photon OS and of course it does also so the first thing to do is
sudo systemctl stop systemd-resolved
sudo systemct disable systemd-resolved
the reason for this is it consumes udp 53 which you’re container needs to run on the next issue I had was usually I can docker exec bash into a container, well this container is slim and I mean slim there is not bash no anything I kept getting an OCI error when I attempted to run any exec commands so I had to use the below docker command
docker run -d -p 53:53/udp --rm --name coredns -v /static_content/coredns_config/:/root/ coredns/coredns -conf /root/Corefile