Home
%3CLINGO-SUB%20id%3D%22lingo-sub-393045%22%20slang%3D%22en-US%22%3ERemoving%20the%20%E2%80%98latest%E2%80%99%20Tag%20%2B%20An%20Update%20on%20MCR%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-393045%22%20slang%3D%22en-US%22%3E%3CP%3E%3CSTRONG%3E%3CFONT%20size%3D%225%22%3ERemoving%20the%20'latest'%20tag%3C%2FFONT%3E%3C%2FSTRONG%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EWith%20our%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2FContainers%2FWindows-Server-2019-Now-Available%2Fba-p%2F382430%22%20target%3D%22_blank%22%20rel%3D%22noopener%22%3Eannouncement%3C%2FA%3E%26nbsp%3Bof%20the%20availability%20of%20Windows%20Server%202019%2C%20we%20informed%20you%20that%20the%20%E2%80%98latest%E2%80%99%20tag%20was%20deprecated%20and%20would%20be%20removed%20from%20the%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3CA%20href%3D%22https%3A%2F%2Fhub.docker.com%2F_%2Fmicrosoft-windows-base-os-images%22%20target%3D%22_blank%22%20rel%3D%22noopener%20nofollow%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%3EWindows%20base%20OS%20image%20repos%3C%2FA%3E.%20We%20have%20already%20deprecated%20the%20%E2%80%98latest%E2%80%99%20tag%20and%20have%20not%20been%20updating%20it%20to%20point%20to%20the%20latest%20version%20of%20an%20image.%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3CSTRONG%3EThe%20next%20step%20is%20for%20us%20to%20remove%20it%20from%20the%20list%20of%20available%20tags%3C%2FSTRONG%3E.%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3CSTRONG%3EWe%20will%20be%20removing%20'latest'%20from%20the%20list%20of%20available%20tags%20on%20April%2016%2C%202019.%3C%2FSTRONG%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3ERemoving%20the%20tag%20will%20prevent%20scenarios%20where%20users%20end%20up%20downloading%20an%20image%20based%20on%20a%20version%20of%20Windows%20that%20is%20several%20versions%20older%20than%20they%20had%20expected.%20For%20instance%2C%20say%20you%E2%80%99re%20using%20Windows%20Server%202019%20and%20want%20to%20pull%20the%20Server%20Core%20container%20base%20image%20with%20the%20following%20pull%20command%3A%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CPRE%3Edocker%20pull%20mcr.microsoft.com%2Fwindows%2Fservercore%3C%2FPRE%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EBecause%20a%20tag%20wasn%E2%80%99t%20specified%20in%20the%20pull%20command%2C%20the%20Docker%20client%20will%20default%20to%20pulling%20whichever%20version%20of%20the%20image%20is%20tagged%20%3Alatest%2C%20which%20in%20this%20case%20is%20a%20Server%20Core%20image%20based%20on%20Windows%20Server%202016.%20This%20scenario%20is%20not%20ideal%20and%20would%20also%20occur%20each%20time%20someone%20explicitly%20used%20%3Alatest%20in%20their%20pull%20command.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EAfter%20the%20removal%2C%20pulling%20%3Alatest%20will%20result%20in%20the%20following%20behavior%3A%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CPRE%3E%23%20Try%20pulling%20with%20latest%3A%0Adocker%20pull%20mcr.microsoft.com%2Fwindows%2Fservercore%3Alatest%20%0A%0A%23%20Outcome%3A%0AError%20response%20from%20daemon%3A%20manifest%20for%20mcr.microsoft.com%2Fwindows%2Fservercore%3Alatest%20not%20found%3C%2FPRE%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CEM%3ENote%20that%20the%20default%20pull%20command%20displayed%20in%20the%20upper-right%20corner%20of%20the%20Docker%20Hub%20repos%20under%20%E2%80%9CCopy%20and%20paste%20to%20pull%20this%20image%E2%80%9D%20will%20also%20result%20in%20the%20above%20behavior%20since%20they%20are%20untagged%20(as%20of%20April%202%2C%202019).%20We%20are%20working%20towards%20improving%20that%20experience.%3C%2FEM%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSTRONG%3EInstead%20of%20using%20%3Alatest%20or%20untagged%20pull%20commands%2C%20please%20declare%3C%2FSTRONG%3E%20%3CSTRONG%3Ethe%20specific%20container%20tag%20(such%20as%20%3A1709%2C%20%3A1803%2C%20%3A1809%2C%20%3Altsc2019%2C%20etc.)%20you%20would%20like%20to%20run%20in%20production.%3C%2FSTRONG%3E%20You%20can%20find%20our%20full%20tag%20listings%20at%20each%20image%E2%80%99s%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3CA%20href%3D%22https%3A%2F%2Fhub.docker.com%2F_%2Fmicrosoft-windows-base-os-images%22%20target%3D%22_blank%22%20rel%3D%22noopener%20nofollow%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%3EDocker%20Hub%20Repo%3C%2FA%3E.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CFONT%20size%3D%225%22%3E%3CSTRONG%3EMCR%20is%20the%20exclusive%20download%20source%20for%20new%20tags%3C%2FSTRONG%3E%3C%2FFONT%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EAlso%20announced%20in%20our%20November%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2FContainers%2FWindows-Server-2019-Now-Available%2Fba-p%2F382430%22%20target%3D%22_blank%22%20rel%3D%22noopener%22%3Eblog%20post%3C%2FA%3E%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3Ewas%20the%20news%20that%20%3CSTRONG%3EMicrosoft%20Container%20Registry%20has%20become%20the%20official%20host%20for%20Microsoft-published%20container%20images%2C%20while%20Docker%20Hub%20remains%20the%20official%20source%20for%20customers%20to%20discover%20and%20acquire%20Microsoft-published%20container%20images.%3C%2FSTRONG%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EThis%20is%20an%20example%20of%20how%20a%20pull%20reference%20should%20change%20to%20point%20to%20the%20MCR%20source%3A%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CPRE%3E%23%20Here%E2%80%99s%20the%20old%20string%20for%20pulling%20a%20container%0Adocker%20pull%20microsoft%2Fwindowsservercore%3Altsc2016%0A%0A%23%20Change%20the%20string%20to%20the%20new%20syntax%20and%20use%20the%20same%20tag%0Adocker%20pull%20mcr.microsoft.com%2Fwindows%2Fservercore%3Altsc2016%3C%2FPRE%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EIn%20January%2C%20MCR%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3CA%20href%3D%22https%3A%2F%2Fcloudblogs.microsoft.com%2Fopensource%2F2019%2F01%2F17%2Fimproved-discovery-experience-microsoft-containers-docker-hub%2F%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%3Eannounced%3C%2FA%3E%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3Ethat%20as%20a%20part%20of%20the%20migration%2C%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3CSTRONG%3Eexisting%20tags%20from%20the%20original%20Docker-hosted%20source%20would%20also%20be%20available%20from%20the%20MCR%20source.%3C%2FSTRONG%3E%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3CSTRONG%3EHowever%2C%20new%20tags%2C%20beginning%20with%20tags%20created%20for%20the%20Windows%20Server%202019%2F1809%20container%20images%2C%20can%20only%20be%20pulled%2Freferenced%20by%20including%20the%20MCR%20repo%20prefix%20(see%20example%20above)%20in%20the%20Docker%20pull%20command%20or%20Dockerfile%20reference.%20The%20appropriate%20pull%20commands%20are%20reflected%20on%20Docker%20Hub%20today.%3C%2FSTRONG%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EAs%20we%20suggested%20in%20November%2C%20you%20should%20still%20change%20your%20pull%2FDockerfile%20references%20to%20the%20MCR%20source%2C%20even%20if%20you%E2%80%99re%20using%20a%20container%20based%20on%20earlier%20versions%20of%20Windows%20Server.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EFor%20more%20information%20on%20the%20move%20to%20MCR%20and%20its%20value%20proposition%2C%20check%20out%20Steve%20Lasker%E2%80%99s%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3CA%20href%3D%22https%3A%2F%2Fazure.microsoft.com%2Fen-us%2Fblog%2Fmicrosoft-syndicates-container-catalog%2F%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%3Eblog%20post%3C%2FA%3E.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CFONT%20size%3D%225%22%3E%3CSTRONG%3EConclusion%3C%2FSTRONG%3E%3C%2FFONT%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EFor%20more%20information%2C%20please%20visit%20our%20container%20docs%20at%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fvirtualization%2Fwindowscontainers%2F%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%3Eaka.ms%2Fcontainers%3C%2FA%3E%26nbsp%3Bas%20well%20as%20our%20other%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2FContainers%2FUpdates-to-Our-Container-Tagging-Format%2Fba-p%2F382435%22%20target%3D%22_blank%22%20rel%3D%22noopener%22%3Eblog%3C%2FA%3E%26nbsp%3Bon%20container%20tagging%20changes%20from%20earlier%20this%20year.%20Let%20us%20know%20your%20thoughts%20in%20the%20comments%20below.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EBest%2C%3C%2FP%3E%0A%3CP%3EMarkos%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-TEASER%20id%3D%22lingo-teaser-393045%22%20slang%3D%22en-US%22%3E%3CP%3E%3CSPAN%3EWe'll%20be%20removing%20the%20'latest'%20tag%20on%20April%2016%2C%202019%20and%20MCR%20will%20be%20the%20exclusive%20home%20for%20any%20new%20tags.%3C%2FSPAN%3E%3C%2FP%3E%3C%2FLINGO-TEASER%3E%3CLINGO-SUB%20id%3D%22lingo-sub-735471%22%20slang%3D%22en-US%22%3ERe%3A%20Removing%20the%20%E2%80%98latest%E2%80%99%20Tag%20%2B%20An%20Update%20on%20MCR%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-735471%22%20slang%3D%22en-US%22%3E%3CP%3EThanks%20for%20updating.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EDo%20we%20have%20any%20chance%20to%20get%20a%20new%20portal%20for%20mcr.microsoft.com%20in%20FY20%3F%3C%2FP%3E%3CP%3ENvidia%20has%20a%20nice%20one.%3C%2FP%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Fngc.nvidia.com%2Fcatalog%2Fcontainers%22%20rel%3D%22nofollow%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%20target%3D%22_blank%22%3Ehttps%3A%2F%2Fngc.nvidia.com%2Fcatalog%2Fcontainers%3C%2FA%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EFollowing%20tag%20list%20is%20good%20for%20machine%20to%20read%2C%20but%20no%20for%20human%20beings.%3C%2FP%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Fmcr.microsoft.com%2Fv2%2Fwindows%2Fservercore%2Ftags%2Flist%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fmcr.microsoft.com%2Fv2%2Fwindows%2Fservercore%2Ftags%2Flist%3C%2FA%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E
Microsoft

Removing the 'latest' tag

 

With our announcement of the availability of Windows Server 2019, we informed you that the ‘latest’ tag was deprecated and would be removed from the Windows base OS image repos. We have already deprecated the ‘latest’ tag and have not been updating it to point to the latest version of an image. The next step is for us to remove it from the list of available tags. We will be removing 'latest' from the list of available tags on April 16, 2019.

 

Removing the tag will prevent scenarios where users end up downloading an image based on a version of Windows that is several versions older than they had expected. For instance, say you’re using Windows Server 2019 and want to pull the Server Core container base image with the following pull command:

 

docker pull mcr.microsoft.com/windows/servercore

 

Because a tag wasn’t specified in the pull command, the Docker client will default to pulling whichever version of the image is tagged :latest, which in this case is a Server Core image based on Windows Server 2016. This scenario is not ideal and would also occur each time someone explicitly used :latest in their pull command.

 

After the removal, pulling :latest will result in the following behavior:

 

# Try pulling with latest:
docker pull mcr.microsoft.com/windows/servercore:latest	

# Outcome:
Error response from daemon: manifest for mcr.microsoft.com/windows/servercore:latest not found

 

Note that the default pull command displayed in the upper-right corner of the Docker Hub repos under “Copy and paste to pull this image” will also result in the above behavior since they are untagged (as of April 2, 2019). We are working towards improving that experience.

 

Instead of using :latest or untagged pull commands, please declare the specific container tag (such as :1709, :1803, :1809, :ltsc2019, etc.) you would like to run in production. You can find our full tag listings at each image’s Docker Hub Repo.

 

MCR is the exclusive download source for new tags

 

Also announced in our November blog post was the news that Microsoft Container Registry has become the official host for Microsoft-published container images, while Docker Hub remains the official source for customers to discover and acquire Microsoft-published container images.

 

This is an example of how a pull reference should change to point to the MCR source:

 

# Here’s the old string for pulling a container
docker pull microsoft/windowsservercore:ltsc2016

# Change the string to the new syntax and use the same tag
docker pull mcr.microsoft.com/windows/servercore:ltsc2016

 

In January, MCR announced that as a part of the migration, existing tags from the original Docker-hosted source would also be available from the MCR source. However, new tags, beginning with tags created for the Windows Server 2019/1809 container images, can only be pulled/referenced by including the MCR repo prefix (see example above) in the Docker pull command or Dockerfile reference. The appropriate pull commands are reflected on Docker Hub today.

 

As we suggested in November, you should still change your pull/Dockerfile references to the MCR source, even if you’re using a container based on earlier versions of Windows Server.

 

For more information on the move to MCR and its value proposition, check out Steve Lasker’s blog post.

 

Conclusion

 

For more information, please visit our container docs at aka.ms/containers as well as our other blog on container tagging changes from earlier this year. Let us know your thoughts in the comments below.

 

Best,

Markos

1 Comment
New Contributor

Thanks for updating.

 

Do we have any chance to get a new portal for mcr.microsoft.com in FY20?

Nvidia has a nice one.

https://ngc.nvidia.com/catalog/containers

 

Following tag list is good for machine to read, but no for human beings.

https://mcr.microsoft.com/v2/windows/servercore/tags/list