Skip to main content
Always tag the version of an image explicitly.

Description

You can never rely that the latest tag is a specific version. Always tag the version of an image explicitly to ensure reproducible builds.

Examples

Problematic code

Correct code

Exception

When the image name refers to a previously defined alias, tagging is not required:

Reference