Docker Community Forums

Share and learn in the Docker community.

Wget line in Dockerfile returns non-zero code: 4

I have split the RUN up and isolated the issue down to this line:

RUN wget -O /miniconda/mtbdependencies/GenomeAnalysisTK-3.8-1-0-gf15c1c3ef.tar.bz2 -U "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/58.0.3029.110 Safari/537.36" chromium --referer ''

The user agents and referral are to get around the way the website generates download URLs.

The code works fine on my ubuntu VM without the RUN, but with RUN in docker, it always returns error code 4. I cannot tell why because the download completes just fine:

2019-09-17 02:47:31 (1001 KB/s) - '/miniconda/mtbdependencies/GenomeAnalysisTK-3.8-1-0-gf15c1c3ef.tar.bz2' saved [14521011/14521011]

FINISHED --2019-09-17 02:47:31--
Total wall clock time: 16s
Downloaded: 1 files, 14M in 14s (1001 KB/s)

then the build stops and throws out this error.
There are previous wget lines in the same dockerfile that did not cause this error.

Does anyone know what’s causing this?

What’s the meaning of this ‘chromium’? It produces a warning on the command line too.

I’ve actually got no idea. Just copied the code off somewhere in a hurry. I’ve removed it and it’s all working now. Didn’t even realise it was out of place. Thank you!