Docker - Timeout value connect was Timeout

Your error looks similar to this issue. The user closed the issue saying it was fixed by a new release of requests, so I would try upgrading requests in your virtual environment:

pip install --upgrade requests

From the comments, it sounds like you actually need to uninstall and then reinstall, rather than just upgrading.

pip uninstall requests
pip install requests

Just in case someone have the same problem as me (same error message) the previous commands were not enough to correct the problem.

There was an old useless urllib3 install inside requests... So I did:

rm -rf ~/.local/lib/python2.7/site-packages/requests/packages/urllib3/

And it worked!