How to find out tag for using instead of latest?

23 views
Skip to first unread message

Sergey

unread,
Feb 12, 2021, 11:53:45 AM2/12/21
to docker-dev
Beginning of my Dockerfile is
FROM mcr.microsoft.com/powershell:latest
Now it is version which uses Ubuntu 20.04 with Powershell 7.1.2
How can I replace latest with some tag?
To freeze this image version in future: FROM mcr.microsoft.com/powershell:XXXXXXXXX?
I need to continue using Ubuntu 20.04 with Powershell 7.1.2 when mcr.microsoft.com/powershell:latest will have Ubuntu 21 and Powershell 8 for example.

Kevin Grimes

unread,
Feb 16, 2021, 7:16:58 PM2/16/21
to docker-dev
You can get a list of all the available tags for this image from Docker hub.

1. Head to https://hub.docker.com
2. Search for "powershell"
3. Click on the one shipped by Microsoft (https://hub.docker.com/_/microsoft-powershell)
4. Scroll down to "Full Tag Listing" and pick the one that meets your requirements

Sounds like the tag you want is 7.1.2-ubuntu-20.04.

Reply all
Reply to author
Forward
0 new messages