You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We're also experiencing this issue, the regex should match yum clean all anywhere in the line. I get this as output :
# Analyzing Dockerfile
-------WARNINGS--------
Line 32: -> RUN yum remove -y wget && yum clean all && rpm -e --nodeps yum && rm -f /usr/bin/rpm
WARNING: yum clean all is not used. the yum cache will remain in this layer making the layer unnecessarily large.
Reference -> http://docs.projectatomic.io/container-best-practices/#_clear_packaging_caches_and_temporary_package_downloads
Shell Syntax Check.......................................................Passed
Hadolint (Dockerfile linter).............................................Passed
make: *** [lint] Error 1
Is there a way of fixing this or excluding this rule?
For this Dockerfile, one of the warning messages we get from linter is about lack of
yum clean all
. You can find complete logs here.But there's already a
yum clean all
statement in the Dockerfile.We use this branch of the linter to lint Dockerfiles.
The text was updated successfully, but these errors were encountered: