mirror of
				https://github.com/moby/moby.git
				synced 2022-11-09 12:21:53 -05:00 
			
		
		
		
	update warning about local dns resolvers
This changes the local DNS resolver warning to explain what the warning is about and why the default external DNS server is used. Docker-DCO-1.1-Signed-off-by: Cristian Staretu <cristian.staretu@gmail.com> (github: unclejack)
This commit is contained in:
		
							parent
							
								
									b7c2e8f54e
								
							
						
					
					
						commit
						85b8025a35
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		| 
						 | 
					@ -1647,7 +1647,7 @@ func (srv *Server) ContainerCreate(job *engine.Job) engine.Status {
 | 
				
			||||||
		return job.Error(err)
 | 
							return job.Error(err)
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
	if !config.NetworkDisabled && len(config.Dns) == 0 && len(srv.runtime.config.Dns) == 0 && utils.CheckLocalDns(resolvConf) {
 | 
						if !config.NetworkDisabled && len(config.Dns) == 0 && len(srv.runtime.config.Dns) == 0 && utils.CheckLocalDns(resolvConf) {
 | 
				
			||||||
		job.Errorf("WARNING: Docker detected local DNS server on resolv.conf. Using default external servers: %v\n", defaultDns)
 | 
							job.Errorf("WARNING: Local (127.0.0.1) DNS resolver found in resolv.conf and containers can't use it. Using default external servers : %v\n", defaultDns)
 | 
				
			||||||
		config.Dns = defaultDns
 | 
							config.Dns = defaultDns
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue