Totally new to docker, sorry if the question is too basic and naive. I also asked some similar docker related questions on stackoverflow, but they say We don’t allow questions about general computing hardware and software on Stack Overflow. So hopefully this forum is more apt for it.
I am building a docker container starting from python 3.6 as my base image for my flask application. The first line of the
Dockerfile looks like
When I get inside the container and want to see the OS version, it shows debian.
# cat /etc/os-release PRETTY_NAME="Debian GNU/Linux 10 (buster)" NAME="Debian GNU/Linux" VERSION_ID="10" VERSION="10 (buster)" VERSION_CODENAME=buster ID=debian HOME_URL="https://www.debian.org/" SUPPORT_URL="https://www.debian.org/support" BUG_REPORT_URL="https://bugs.debian.org/"
I understand any python interpreter has to be hosted by an operating system, but why Debian buster in particular when I have not mentioned that anywhere? Why not, for example, based on Linux Mint or Arch? If, for example, I want a python application to run on Manjaro, then do I have to start from Manjaro base image with
FROM manjaro and install the utilities in my Dockerfile to get where I want?
In general, whenever I pick a higher level image like Python, how does Docker pick the lower level components such as the OS. Is there a default list somewhere?