when I type docker pull nginx, it will fail with message
$ docker pull nginx
Using default tag: latest
Pulling repository docker.io/library/nginx
Network timed out while trying to connect to https://index.docker.io/v1/repositories/library/nginx/images. You may want to check your internet connection or if you are behind a proxy.
How ever when I curl the uri,
curl https://index.docker.io/v1/repositories/library/nginx/images
It works
[{"checksum": "", "id": "e54ac52c1cd0f31344ce34f6f464a86728283fa836df9e3b85abbf0f7125258b"}, {"checksum": "", "id": "53706a20c63c8f3e5a83f7f254dfd4f35af182cfef2f08e257ea8fb9448dbc5a"}, {"checksum": "", "id": "6dcf98c013aa6ed9c5a92510ad9c01986784913a41b6f4a5d8ee78e44d6f3e69"}, {"checksum": "", "id": "fb6a29723bd61ce419b25d711039edd0af435a1854336ba220ad7524885bd8ec"}, {"checksum": "", "id": "9975d8b38f0a02ec61e30009e3e61506a56c42fe66b148a5a99bdee371275af1"}, {"checksum": "", "id": "d9896b314eed0a0bfb3063fea9b6f475ba641a6a8b88fd4a32a23b33650f8584"}, {"checksum": "", "id": "58dcc178d9ab2fe976bfd07c931ad7cb1d597c2aad09fd1fe24a00847350b96b"}, {"checksum": "", "id": "1f1c23fb65be0308334593908484bf9988f5b4914b5033d23be448891fa7d2f5"}, {"checksum": "", "id": "5cc1f30a1c92210638f87f66405cdd5b8fc7212ca894a53e46331fc4be07f986"}, {"checksum": "", "id": "0f577a4d2fa7e1d29a811da41029ee1fc5e5bbe40949377411aa4f0ae49da56c"}, {"checksum": "", "id": "c629dbbdf17e04f9984a033607103d9d127e8dad3c775acd7174e2c8670f8172"}, {"checksum": "", "id": "9f1890db405226ff2b3a87d76e2eedfcb27be46ec3962493ba5afc1cc598fad6"}, {"checksum": "", "id": "c0e6aba9c87a9a49039f6d7a0e7cee1ca61f63ddd19025db5b078e3603e6fcfc"}, {"checksum": "", "id": "6b8a1ecb2364a8ea74873a6bac5104699c260a392ce403ca137b2ce5c5235114"}, {"checksum": "", "id": "d1cc0e6af8490e94cde088bec8b267615464eeb1af20bcbe577d055ff231e634"}, {"checksum": "", "id": "efbd5c0bba229e2b35a3a3b2eecb2b3135e676ff0ac996e3de10d6c3ba5881a9"}, {"checksum": "", "id": "fad62215f25cca95a039eee4710724dee024eee81554a6a63e304d724ecc369a"}, {"checksum": "", "id": "1974fe9e16aaf53f4d697a50ce30ec5d442bb0d5b90ff9bf416b0622df1c6c9e"}, {"checksum": "", "id": "55559c7ac7b11d91ee4f7e84661c5f0bf3468506c49519649c3eb81a4dfb11e0"}, {"checksum": "", "id": "ad60677089e5ab5e71293e3bb59b0723dab7cf183b739337db31cd6eb25f06a7"}, {"checksum": "", "id": "2fde8ab4c6531ec5986c1c79586b00df383d86a106474421eef299ba3c9a7c0b"}, {"checksum": "", "id": "f58d61a874bedb7cdcb5a409ebb0c53b0656b880695c14e78a69902873358d5f"}, {"checksum": "", "id": "54fdf50e0ac687b38504edb2ad481849e7f6637b75ccc49895d4b5365c4528e7"}, {"checksum": "", "id": "be700e4956dfe3fe533d97ec120c5cd1ada9fce0aedddbd94c9d37e66b8a03c3"}, {"checksum": "", "id": "4b9bf1642656d3482983e78c61c6f09eb4d5f5a32fcc390b94acdccc496be4c8"}, {"checksum": "", "id": "51abb4d2846b1061b1dc23834bdef61593c0bee503f6be25e42fa84b9ef315dd"}, {"checksum": "", "id": "47131f1f575f4f66dfa24b3d844d5ca93aa7922ee6a80ccc98662d428f78a5e1"}, {"checksum": "", "id": "43053ae02e2815a0c812df35679d7b54be80f848aa2a4278632644a0e435f647"}, {"checksum": "", "id": "cea3e203a9a4178bbb9433d08f2efe02f3aeef8cec2a4fa9001f960ddc83bb19"}, {"checksum": "", "id": "24ba19347287d5803384971bccf016fb02ef34598bd6fb31b87f0f605c79daa3"}, {"checksum": "", "id": "15d695f22e63152a6dadca632a5144e228db64d467a6216071a2bbc31b8d9d3a"}, {"checksum": "", "id": "7b5a5b33135cae92d334deeab4e173379271519aa5536b4b9f0c066d79342323"}, {"checksum": "", "id": "cbb654e7b198ca020999cf9b43680aca22fb1dcc6dfdcc53baa289ca382330cd"}, {"checksum": "", "id": "94b2a402586c025be73e466fe3d99241e89daf83c33dd6e637f8094dae2dedf2"}, {"checksum": "", "id": "3115224c8759543271db06d6c9e00eb15ffd94c04e1d977bfa1f7659be22906a"}, {"checksum": "", "id": "85cad9484b9ce4774e2fb0de2841fc5973e413c1483c804af47bebee466ab1fa"}, {"checksum": "", "id": "3764c88aa9a307b8ef71997605875b407807b21d4f452e61a63b4a3730c6a356"}, {"checksum": "", "id": "2a250d324882b789296fa2ce98083ed9685e6b5ed9afdb397648aed9b6cf04a4"}, {"checksum": "", "id": "25e5fff3d572b535ae7228f89146a963d30435869e8c7737c4813a1523ae648e"}, {"checksum": "", "id": "3dfb21b47cdf6f7af76e22c173ee5d3aa5c98d1ce5bba97a0385df34748e93db"}, {"checksum": "", "id": "014d057e4d45acaa782a695595340523c1ecf71ba5a2e0e3caeb7b8b867635a5"}, {"checksum": "", "id": "35e8ef69b40a30e36c240aa8f80f402142829176eaf0b9451efbb0277bf8a0e8"}, {"checksum": "", "id": "4cb30e44374099cb581b26fcedc8154c47c810a841328de1e32b463e26c236ad"}, {"checksum": "", "id": "9bb500e55cdb4160f1867c8468d737bfec4bb610589e1066c74e1329c3a1f894"}, {"checksum": "", "id": "06cc8ef88e05b70c7e6a84d55710c081090d03b4643f6a3c632b7711b9050266"}, {"checksum": "", "id": "605083c53cc5770e133fadc6cd3c0e4904c279fe27f690a753e26578cf705e89"}, {"checksum": "", "id": "c95d1af3960da69424749e63ded71fd3cd730796ddf33c7666544f21ce24e5a6"}, {"checksum": "", "id": "0a410ba58143f8d3b75f1b37560fee03fba95ec6468709db01c813c068315a21"}, {"checksum": "", "id": "fb6fc13654c9550f90ed54ce01a24a077dbbd2f96a406ca5f4a3b0685f502697"}, {"checksum": "", "id": "36b0adefb2f371685aa764c3d47eaaf12583814c7bccb13282a0fe9423526fb5"}, {"checksum": "", "id": "777ff39b646283420dfa1b5cbebaec067ddbe6c2e8360f9df11d20fd69876561"}, {"checksum": "", "id": "6886fb5a9b8d73b12d842bab8f9a6941c36094c2974abddb685d54c9d99e37da"}, {"checksum": "", "id": "902b87aaaec929e80541486828959f14fa061f529ad7f37ab300d4ef9f3a0dbf"}, {"checksum": "", "id": "9a61b6b1315e6b457c31a03346ab94486a2f5397f4a82219bee01eead1c34c2e"}, {"checksum": "", "id": "aface2a79f55ab2100b7d0f87542f0e1b030a368aa06127950aa6d0b32ab4fcb"}, {"checksum": "", "id": "5dd2638d10a1f58cb626b934ae30424504c88e1a7f5c2709d9a26b44a6ff7668"}, {"checksum": "", "id": "97df1ddba09e698ea2ee764bf081482056cc8e1e38a53c8c8c9753072cadd3fb"}, {"checksum": "", "id": "438d75921414c48c09defacd519b2339fd5c06a1192562b40e68465fd06df017"}, {"checksum": "", "id": "7340fb61bdef2d604a501a5911d627db634dd35b1588e8ee39ffa82152d7b82d"}, {"checksum": "", "id": "51ed40dd36716814de243415f08dee864a36ff0bb191cd2143f07f4543f05497"}, {"checksum": "", "id": "2b12d66de2777efbc3fcb84ac615f358573137f1e7e6d31078414a9376b8019a"}, {"checksum": "", "id": "4b1798a9cafa46506b7bd878b44ac4ef1636adeaf4caae3fc092ac7a51f989f2"}, {"checksum": "", "id": "61f2d0dc03500794ee4db5aef005c80eabd7193eb8265bdf915090e0061ba975"}, {"checksum": "", "id": "ce293cb4a3c9d553a24d4b30d7a130254b889ef84b1207f3afea59c06cc95450"}, {"checksum": "", "id": "61b3964dfa70d6dedddaa94f9fff414db13da339250dea586c4401c53932254e"}, ...