Cette page n'est pas encore disponible en français, sa traduction est en cours. Si vous avez des questions ou des retours sur notre projet de traduction actuel, n'hésitez pas à nous contacter.
Metadata
ID:docker-best-practices/apt-pin-version
Language: Docker
Severity: Notice
Category: Best Practices
Description
When using apt-get install, pin the version to avoid unwanted upgrades and undefined behavior.
Non-Compliant Code Examples
FROM debian:12RUNset -eux;\
apt-get update;\
apt-get install -y curl git gcc g++ make cmake;\
rm -rf /var/cache/apt/archives /var/lib/apt/lists/*