> ## Documentation Index
> Fetch the complete documentation index at: https://tally.wharflab.com/llms.txt
> Use this file to discover all available pages before exploring further.

# hadolint/DL3047

> Use `wget --progress` to avoid excessively bloated build logs.

Use `wget --progress` to avoid excessively bloated build logs.

| Property | Value |
| - | - |
| Severity | Info |
| Category | Best Practice |
| Default | Enabled |
| Auto-fix | Yes (`--fix`) |

## Description

`wget` without flag `--progress` will result in excessively bloated build logs when downloading larger files because it outputs a line for each
fraction of a percentage point.

## Examples

### Problematic code

```dockerfile theme={null}
FROM ubuntu:20
RUN wget https://example.com/big_file.tar
```

### Correct code

```dockerfile theme={null}
FROM ubuntu:20
RUN wget --progress=dot:giga https://example.com/big_file.tar
```

or:

```dockerfile theme={null}
FROM ubuntu:20
RUN wget -nv https://example.com/big_file.tar
```

## Auto-fix

Adds `--progress=dot:giga` to wget commands. Skipped if `-q`, `--quiet`, `-nv`, `--no-verbose`, `-o`, `--output-file`, `-a`, `--append-output`, or
`--progress` is already present.

```dockerfile theme={null}
# Before
RUN wget http://example.com/file.tar.gz

# After (with --fix)
RUN wget --progress=dot:giga http://example.com/file.tar.gz
```

## Reference

* [hadolint/DL3047](https://github.com/hadolint/hadolint/wiki/DL3047)


## Related topics

- [tally/prefer-wget-config](/rules/tally/prefer-wget-config.md)
- [Hadolint rules](/rules/hadolint/overview.md)
- [hadolint/DL3020](/rules/hadolint/DL3020.md)
- [hadolint/DL3021](/rules/hadolint/DL3021.md)
- [hadolint/DL3022](/rules/hadolint/DL3022.md)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.