Docker Community Forums

Share and learn in the Docker community.

[Resolved] Ever since I upgraded docker engine to 1.11 my links are on and off


(Fernando Mayo) #21

@pukkasoftware @ahansson89 Debian-based nginx image does not have any known issues with Cloud’s service discovery. I cannot reproduce your issue.

With nginx:latest, trying to ping service “app” on the same stack:
# ping app PING app.2aabe85d-5b5a-4d36-b440-7fc613f6cf13.local.dockerapp.io (10.7.0.9): 56 data bytes 64 bytes from 10.7.0.9: icmp_seq=0 ttl=64 time=2.496 ms 64 bytes from 10.7.0.9: icmp_seq=1 ttl=64 time=1.047 ms --- app.2aabe85d-5b5a-4d36-b440-7fc613f6cf13.local.dockerapp.io ping statistics --- 2 packets transmitted, 2 packets received, 0% packet loss round-trip min/avg/max/stddev = 1.047/1.772/2.496/0.725 ms

Can you also try to ping <service_name>.<stack_name>?


(Ahansson89) #22

I have jwilder/nginx-proxy in front of it, try doing that.


(Pukkasoftware) #23

It’s at least a known issue here:

root@nginx-app-1:/# date                                                                                                                                                 
Fri Aug  5 17:49:05 UTC 2016                                                                                                                                             

root@nginx-app-1:/# ping app                                                                                                                                             
PING app (127.0.53.53): 56 data bytes                                                                                                                                    
64 bytes from 127.0.53.53: icmp_seq=0 ttl=64 time=0.035 ms                                                                                                               
64 bytes from 127.0.53.53: icmp_seq=1 ttl=64 time=0.054 ms                                                                                                               
64 bytes from 127.0.53.53: icmp_seq=2 ttl=64 time=0.051 ms                                                                                                               
^C--- app ping statistics ---                                                                                                                                            
3 packets transmitted, 3 packets received, 0% packet loss                                                                                                                
round-trip min/avg/max/stddev = 0.035/0.047/0.054/0.000 ms                                                                                                               

root@nginx-app-1:/# ping app.msr-demo                                                                                                                                    
ping: unknown host 

In order to make our stack run, I’ve had to rename what we were calling “app” internally since this DNS resolution is not working so pinging app. won’t work in my particular build right now. This is how app should work:

root@nginx-app-1:/# ping cf                                                                                                                                              
PING cf.b7c6d6c7-1d42-46b0-9574-f28d288b3018.local.dockerapp.io (10.7.0.15): 56 data bytes                                                                               
64 bytes from 10.7.0.15: icmp_seq=0 ttl=64 time=0.089 ms                                                                                                                 
64 bytes from 10.7.0.15: icmp_seq=1 ttl=64 time=0.065 ms                                                                                                                 
^C--- cf.b7c6d6c7-1d42-46b0-9574-f28d288b3018.local.dockerapp.io ping statistics ---                                                                                     
2 packets transmitted, 2 packets received, 0% packet loss                                                                                                                
round-trip min/avg/max/stddev = 0.065/0.077/0.089/0.000 ms                                                                                                               
root@nginx-app-1:/# ping cf-1                                                                                                                                            
PING cf-1.b7c6d6c7-1d42-46b0-9574-f28d288b3018.local.dockerapp.io (10.7.0.15): 56 data bytes                                                                             
64 bytes from 10.7.0.15: icmp_seq=0 ttl=64 time=0.059 ms                                                                                                                 
64 bytes from 10.7.0.15: icmp_seq=1 ttl=64 time=0.067 ms                                                                                                                 
64 bytes from 10.7.0.15: icmp_seq=2 ttl=64 time=0.064 ms                                                                                                                 
^C--- cf-1.b7c6d6c7-1d42-46b0-9574-f28d288b3018.local.dockerapp.io ping statistics ---                                                                                   
3 packets transmitted, 3 packets received, 0% packet loss                                                                                                                
round-trip min/avg/max/stddev = 0.059/0.063/0.067/0.000 ms                                                                                                               
root@nginx-app-1:/# ping cf.msr-demo                                                                                                                                     
PING cf.msr-demo.b7c6d6c7-1d42-46b0-9574-f28d288b3018.local.dockerapp.io (10.7.0.15): 56 data bytes                                                                      
64 bytes from 10.7.0.15: icmp_seq=0 ttl=64 time=0.056 ms                                                                                                                 
64 bytes from 10.7.0.15: icmp_seq=1 ttl=64 time=0.068 ms                                                                                                                 
64 bytes from 10.7.0.15: icmp_seq=2 ttl=64 time=0.073 ms

Bottom-line appears to be that the Jessie-based Nginx is resolving “app” as “.app” and returning 127.0.53.53. I don’t know if that’s a Docker DNS problem or an Nginx image problem but it is failing when the service is named “app”.


(Fernando Mayo) #24

@ahansson89 tried with that, still cannot reproduce it.

@pukkasoftware I don’t see any service running in your account called app at the date time shown in the logs. If there was one, ping app would resolve to the service IP and not 127.0.53.53


(Imjosh3) #25

I’m having this same issue. Using the same stack file, noticed this issue since I created new node w/ the latest docker installed.

# uname -a                                                                                                                                                             
Linux nginx-1 3.13.0-32-generic #57-Ubuntu SMP Tue Jul 15 03:51:08 UTC 2014 x86_64 GNU/Linux      
                                                                   
# env                                                                                                                      
...           
NGINX_VERSION=1.10.1-1~jessie                                                                                                                                                                                                                                                                                                                                                              

# ping app                                                                                                                                                               
PING app (127.0.53.53): 56 data bytes                                                                                                                                    
64 bytes from 127.0.53.53: icmp_seq=0 ttl=64 time=0.141 ms
                                                                                                                                                                                                                    
# ping app-1                                                                                                                                                             
PING app-1.d0568e85-57d1-403a-bae7-c9353959f6cc.local.dockerapp.io (10.7.0.7): 56 data bytes                                                                             
64 bytes from 10.7.0.7: icmp_seq=0 ttl=64 time=0.073 ms             
                                                    
# ping app.test                                                                                                                                                          
PING app.test.d0568e85-57d1-403a-bae7-c9353959f6cc.local.dockerapp.io (10.7.0.7): 56 data bytes                                                                          
64 bytes from 10.7.0.7: icmp_seq=0 ttl=64 time=0.069 ms

(Borja Burgos) #26

The latest Docker Cloud release is now available with support for Docker Engine 1.11.2-cs5, which introduces service discovery and DNS improvements, along with more reliable networking between containers.

For more information on this release and how to upgrade nodes to Docker Engine 1.11.2-cs5, check out: Docker Cloud Release Notes (09/27/2016)