I’ts kind of disappointing that no colons or other special characters are allowed in the tag since the current best practice convention syntax that is even used by Docker images doesn’t give a clear distinction of separate dependency versions and version semantics. It’s a good practice to add dependencies to your tags (e.g., alpine3.8), in case that another image relies on it, but then again, most images also use the hyphen as separator so that you may end up with something like the Docker image “18.09-rc-git”. In this tag, it is unclear if “rc” and “git” are part of the version or represent a separate dependency. If colons were allowed, you would have a clearer tagging. For instance, in the format imagename:imageversion[:depversion(n++)], docker:18.09-rc:gitx.y.z:alpine3.8. That would benefit both the common dependency referencing practice and thus the security of the images, just as the readability of the tags.
matfax
(Matthias Fax)
4
Related topics
| Topic | Replies | Views | Activity | |
|---|---|---|---|---|
| Best practices for tag and image names for dockerhub and official images | 0 | 2986 | January 19, 2017 | |
| Suggestion for naming conventions | 1 | 2396 | June 30, 2021 | |
| New error in tag format | 3 | 9070 | June 14, 2019 | |
| Docker tags and regressions | 0 | 697 | May 26, 2017 | |
| Docker images and version control | 1 | 2541 | August 10, 2016 |