Addint from hithub

When I try adding a file from github through my dockerfile I get the error github read: connection reset by peer

Steps to reproduce: Add line.
ADD /tmp/wkhtmltopdf.deb

Your adding will likely fail.

How to solve that and download this from github?

try it on It works.

That it doesn’t work for you could be caused by your network environment. Are you behind a proxy?

A friend told me it won’t work since github uses redirection. So i changed from ADD into RUN wget and so wget works just fine.