Skip to content

Files

Latest commit

 

History

History
24 lines (15 loc) · 796 Bytes

DL3005.md

File metadata and controls

24 lines (15 loc) · 796 Bytes

Pattern: Use of apt-get upgrade or dist-upgrade

Issue: -

Description

You should avoid RUN apt-get upgrade or dist-upgrade, as many of the “essential” packages from the parent images won’t upgrade inside an unprivileged container. If a package contained in the parent image is out-of-date, you should contact its maintainers.

Example of incorrect code:

RUN apt-get update && apt-get upgrade 

Example of correct code:

RUN apt-get update

Further Reading