I changed the OS from Ubuntu 16.04 to 20.04, and changed the DNS port from 53 to 8600, and created a new image in Azure.
When I run the job in Nomad I see the following error in the container logs.
org.springframework.cloud.consul.config.ConsulPropertySources$PropertySourceNotFoundException: com.ecwid.consul.transport.TransportException: java.net.UnknownHostException: consul.service.consul: Name does not resolve
What should I change in Nomad or Consul configs to use 8600 as a default port? Or do you have any other suggestions?
If yes, I have PR against that repository with many changes, one of which deals with making the DNS work with Docker containers with systemd-resolved. Would you like to try it out?