Skip to content

wget-progress

Dockerfilestyleno fixdefault: offdockerfile/hadolint

Reports a wget call that does not limit its progress output. It has none of --progress, -q or --quiet, -nv or --no-verbose, -o or --output-file, -a or --append-output.

By default wget draws a progress bar. A build is not a terminal, so each update is logged as a line of its own, and a large download adds thousands of lines to the build log. The log gets hard to read and CI logs reach their size limits.

--progress=dot:giga, -nv or -q keep the output short.

Reported
...
RUN wget https://example.com/f
RUN wget -q https://example.com/f
...
RUN echo sudo cd ps
...
sudo make install
RUN v=$(sudo make) && echo "$(wget https://example.com/f)"
...
dockerfile:
lint:
rules:
wget-progress: warn # off (default), warn, error

Enabled by the presets: dockerfile/hadolint.

Suppress one line with sudsy-disable-next-line wget-progress in a comment of the file’s language.

The same check in other tools; Sudsy reports what each upstream rule reports.

Tool Rule Match
hadolint DL3047 full