Pattern: Use of latest
image tag
Issue: -
You should not rely that latest
tags is a specific version. It's prone to errors if the image will ever update. Prefer a specific tagged image, that way you always know exactly what variant of an image is being used.
Example of incorrect code:
FROM ubuntu:latest
Example of correct code:
FROM ubuntu:12.04