Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

What's the difference between shared and simple tags? #316

Closed
x-yuri opened this issue Nov 27, 2018 · 4 comments
Closed

What's the difference between shared and simple tags? #316

x-yuri opened this issue Nov 27, 2018 · 4 comments

Comments

@x-yuri
Copy link

x-yuri commented Nov 27, 2018

Mongo's README has two categories of tags? What's the difference?

@tianon
Copy link
Member

tianon commented Nov 27, 2018

I've taken a first pass at explaining this difference in a generic way over in docker-library/faq#2. 👍

@x-yuri
Copy link
Author

x-yuri commented Nov 27, 2018

@tianon So if I run an image with a shared tag... all images from the list are downloaded and one of those is automatically chosen? I guess not.

Also, the first link from both categories points to the same file. So does the second.

UPD I probably see. 3.2.21, 3.2 are shared tags. Both are assigned to each of the following images:

3.2.21-jessie
3.2.21-windowsservercore-ltsc2016
3.2.21-windowsservercore-1709

Which are identified by simple tags. Simple tags are like main tags. Shared tags group images together under common name. But what's the idea? How can I use shared tags? I don't think docker will chose automatically which image to download if I do:

$ docker run mongo:3.2

@tianon
Copy link
Member

tianon commented Nov 27, 2018

The point is that you can docker run mongo:3.2 and it will roughly Do The Right Thing on both Linux and the various supported versions of Windows.

@tianon
Copy link
Member

tianon commented Nov 27, 2018

See also "manifest lists" in Docker (although we also already use manifest lists for multiarchitecture support, and your Docker client is smart enough to usually pull the correct image from that list).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants