We are using Docker-Machine in our team, and receiving a reoccurring issue: docker fails to perform name resolution. The error can arrive in two ways:
- We run an application, which tries to connect to a database using a connection string, and get as output the following message:
could not translate host name “ourdatabase.cw.us-east-1.redshift.amazonaws.com” to address: Temporary failure in name resolution
Solution: the only one we came up with is removing the current docker-machine and starting a new one.
- Can’t access docker hub, nor any connection to our databases can be establish. Docker outputs it can’t connect to the hub in order to download an image ( and outputs the specific ip it is trying to connect to).
Still haven’t came up with a solid solution, tried removing, stoping both docker-machine and docker, restart the computer etc. After some time it just passes. We think it is not related to our internet connection/ firewall etc since not all developers meet this problem.