Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

False warning about lack of yum clean all #83

Open
dharmit opened this issue May 12, 2017 · 2 comments
Open

False warning about lack of yum clean all #83

dharmit opened this issue May 12, 2017 · 2 comments

Comments

@dharmit
Copy link

dharmit commented May 12, 2017

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.

@ghost
Copy link

ghost commented Jun 21, 2018

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?

@dawidmalina
Copy link

I have the same :(

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants