Using the latest
tag can cause breakages when a new version of an image is released. You can never rely on the assumption that the latest
tag points to a specific version of an image.
It is recommended to always use a specific tagged image, e.g. ubuntu:12.04
. That way you always know exactly what variant of an image is being used.
FROM debian:latest
FROM debian:jessie