Another reason for this problem: You may have used http_proxy in the docker setting. In this case, you must set address of the master nodes addresses in no_proxy