Using latest is prone to errors if the image will ever update. Pin the version explicitly to a release tag.
You can never rely that the
latest tags is a specific version.
Tip: You recommend you always use a specific tagged image, for example ubuntu:12.04. That way you always know exactly what variant of an image is being used.