I know what tags like buster
and bullseye
mean, but what if there’s no tag to identify the OS?
For instance, the official Python image on Docker Hub has python:latest
and python:slim
. How to understand what operating system (Ubuntu, Debian, Windows 10, Windows 2019, etc) those images are based on, other than building a container from them?
2
Answers
The solution is to click on a tag and then check the image hierarchy. It shows what OS is the image is based on.
For example, the "latest" Python image is based on Debian 12.
Or the image of MySQL is based on OracleLinux:
The tag is just a label for the image, it not directly related to the OS. It could be a semver like
1.4.2
it could be a branch name likedevelop
, it could be an OS name but usually isnt. Them same tag can be built for multiple OS versions to allowpython:latest
to be run on windows or linux and docker will get the right OS version.You can see by searching on dockerhub and looking at
python:latest
this tag supports a wide number of OS