Skip to content
Moritz Röhrich edited this page Mar 21, 2021 · 4 revisions

Multiple HEALTHCHECK instructions

Problematic code:

FROM busybox
HEALTHCHECK CMD /bin/healthcheck
[...]
HEALTHCHECK CMD /bin/something

Correct code:

FROM busybox
HEALTHCHECK CMD /bin/healthcheck

or

FROM busybox
HEALTHCHECK NONE

Rationale:

Providing more than one HEALTHCHECK instruction per stage is confusing, error prone and possibly makes for larger than necessary Docker images.

Note:

This rule used to be Provide an email adress or URL as maintainer., but that was deprecated and eventually replaced with the current rule.

Clone this wiki locally