skip to Main Content

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


  1. Chosen as BEST ANSWER

    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.

    enter image description here

    Or the image of MySQL is based on OracleLinux:

    enter image description here


  2. 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 like develop, it could be an OS name but usually isnt. Them same tag can be built for multiple OS versions to allow python: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

    enter image description here

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search