Docker Community Forums

Share and learn in the Docker community.

How to find out tag for using instead of "latest" in

Beginning of my Dockerfile is


Now it is version which uses Ubuntu 20.04 with Powershell 7.1.2.
How can I replace “latest” with some tag to freeze image version in future?
How to detect this tag?

I need to continue using Ubuntu 20.04 with Powershell 7.1.2 in Dockerfile when will have Ubuntu 21 and Powershell 8 for example.