Skip to main content
Either use Wget or Curl but not both.
PropertyValue
SeverityWarning
CategoryBest Practice
DefaultEnabled

Description

Don’t install two tools that have the same effect. Using both wget and curl in a Dockerfile adds unnecessary cruft to the image. Pick one and use it consistently.

Examples

Problematic code

FROM debian
RUN wget http://google.com
RUN curl http://bing.com

Correct code

FROM debian
RUN curl http://google.com
RUN curl http://bing.com

Reference