Cannot connect to the remote hosts and ports but can see it

  centos, docker

I have installed docker on centos 7.3. Now I have redis in another server which I am able to see it using telnet command from this server. Unfortunately, I cannot connect to that redis from a docker image that I have. Does anybody know how can i solve this problem? Thanks!

Source: Docker Questions