This error has had a lot of people stumped by the looks of their issues on GitHub. I think the error stems from downloading Docker through their main landing page, I tried a lot to fix the issue and with no luck. This included switching the DNS over to 8.8.8.8 which has been suggested in the past and worked.

My answer to the issue is don't use the main landing page to install Docker, instead you want to download it from here and then everything should work as normal.

If you have any questions, or feel it hasn't worked for you, then please let me know.