Skip to content
Moritz Röhrich edited this page Oct 6, 2020 · 1 revision

Do not use yum update

Problematic code:

FROM centos
RUN yum update -y

Correct code:

FROM centos

Rationale:

See DL3005. Problems include:

  • Updates failing on packages from base images in unprivileged containers
  • Inconsistencies between builds producing problems for application developers