Appendix A Oracle Linux Container Image Tagging Conventions

Oracle follows several conventions when tagging container images for Oracle Linux. Users should be aware of these conventions to ensure that the best image is used for the purpose at hand to avoid unnecessary breakages in functionality and to help ensure that images continue to use the most recently patched software.

The slim tag

Oracle releases minimal compressed versions of each Oracle Linux release. These images contain just enough operating system to run within a container and to perform installations of additional packages. These images are the recommended images for general use within builds and where scripted installation is likely to be used. The images that use this tag are maintained at the most current update level.

For example, to use the most recent version of an Oracle Linux 7 slim image, use the 7-slim tag. To use the most recent version of an Oracle Linux 8 slim image, use the 8-slim tag.

# docker pull oraclelinux:7-slim

General Oracle Linux release tags

Oracle Linux images are tagged at their release level and are maintained to always map to the latest corresponding update level. If you need a more complete operating system than the version provided in a slim image, you should use a release tag to obtain the latest image for that Oracle Linux image.

For example, to get the latest update release image for Oracle Linux 8, use the 8 tag:

# docker pull oraclelinux:8

Oracle Linux update level tags

Oracle Linux images are tagged at their update level. The other tags described map onto the latest or most current update level for an Oracle Linux image.

You should not directly use update level tags within your Dockerfile or within any of your builds unless you have a specific use case that requires a particular update level. Typical use cases involve trying to resolve an issue or bug that is only present at a particular update level of Oracle Linux.

Using an update level tag can result in your containers running unpatched software that may expose you to security issues and software bugs.

Update level tags use dot notation to indicate the update level. For example, Oracle Linux 8 Update 2 is indicated using the 8.2 tag:

# docker pull oraclelinux:8.2

The latest tag


Oracle does not provide this tag for Oracle Linux images. Use a slim image or a release tag instead. Oracle also recommends that users avoid dependency on this tag when working with other distribution or software images.

The use of a default often results in significant confusion and regularly breaks builds and scripted functionality for end users. For this reason, and to help encourage best practice when working with image tags, Oracle does not provide a latest tag for Oracle Linux images.

The following reasons for Oracle's decision on this help to explain why this tag is not available:

  • When the latest tag is used, it can result in significant jumps between distribution releases rather than simple update levels. This is usually not what a user intends when selecting the latest tag, or depending on tools to fall back to this tag by not specifying a tag at all. Expected functionality can change dramatically between releases resulting in changes to commands, options, configurations and available software.

  • There is no easy way to identify which latest image was used for a particular build, making it difficult to see the differences between two final build images. This problem tracking changes also makes it difficult to roll back to a known functioning base image if a new build fails.

  • Tagging an image with the latest tag is not automatic and it is possible for a more recent image to be available while the image tagged as latest has not been updated. This can lead to unexpected consequences.

  • There is no guarantee that all tools treat the latest tag the same. While some tools may default to always pulling an image tagged as latest from an upstream registry, other tools may default to a locally stored image also tagged as latest, even if it has fallen out of date.

This decision may result in errors in some tools that fall back to the latest tag when no tag is specified for an image. For example:

# docker pull
Trying to pull
  manifest unknown: manifest unknown
Error: error pulling image "": unable to pull 
unable to pull image: Error initializing source docker://oraclelinux:latest: Error reading manifest latest 
in manifest unknown: manifest unknown

Always specify the appropriate tag for the image that you intend to use! For example:

# docker pull oraclelinux:8