Docker Community Forums

Share and learn in the Docker community.

Add a CNAME to a service in embedded DNS server

swarm

(Jmcdonaghberklee) #1

I’ve tried setting the --hostname flag in the hopes that it would create a DNS CNAME for the service but that didn’t work. I would be willing to change the container name but it can’t take an FQDN… Is there a way to interact with the embedded DNS server to add a CNAME to a service? I could even do this through the API if I wanted since I deploy with jenkins.


(Sam) #2

the service names are only shared inside the swarm… not outside…


(Jmcdonaghberklee) #3

I’m aware. The question still stands.