Create temporary file to save partial download file and resume downloading

Docker-DCO-1.1-Signed-off-by: Derek <crq@kernel.org> (github: crquan)