Docker Community Forums

Share and learn in the Docker community.

How are Python tags with no patch version managed?

Hi,

The official Python images (Docker Hub) have some tags that specify a Python major and minor version but no patch version. For example:

  • python:3.6

  • python:3.6-alpine3.13

How are these images updated? For example when a new patch version of Python 3.6 is released, does the python:3.6 image get updated with the new version of Python? Is there some way to see a changelog?

Thanks

In Python, you should consider naming it __version__ , not version .

This is almost a quasi-standard. Many modules in the standard library use version, and this is also used in lots of 3rd-party modules, so it’s quasi-standard.

Usually, version is a string, but sometimes it’s also a float or tuple.

Usually, __version__ is a string, but sometimes it’s also a float or tuple.