Skip to content

Commit bce3cbf

Browse files
authored
Stop telling people not to install security updates
1 parent 0c87bc8 commit bce3cbf

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

develop/develop-images/dockerfile_best-practices.md

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -469,13 +469,6 @@ Probably the most common use-case for `RUN` is an application of `apt-get`.
469469
Because it installs packages, the `RUN apt-get` command has several gotchas to
470470
look out for.
471471

472-
Avoid `RUN apt-get upgrade` and `dist-upgrade`, as many of the "essential"
473-
packages from the parent images cannot upgrade inside an
474-
[unprivileged container](../../engine/reference/run.md#security-configuration). If a package
475-
contained in the parent image is out-of-date, contact its maintainers. If you
476-
know there is a particular package, `foo`, that needs to be updated, use
477-
`apt-get install -y foo` to update automatically.
478-
479472
Always combine `RUN apt-get update` with `apt-get install` in the same `RUN`
480473
statement. For example:
481474

0 commit comments

Comments
 (0)