I am trying to get a better understanding of how Docker works, in Windows 10…This is what I think is going on:
- We first download the Docker desktop installer for Windows from the Docker website. After the installation is completed, we run the installed Docker CLI and make sure Docker is installed.
Q: How is the Docker CLI different from the regular CMD shell or Powershell? Is it really just another shell but with some other configurations automatically launched?
Q: Does the Docker desktop installation process automatically install both Hyper V and WSL 2 (which is different from WSL1)? I think Hyper V is a hypervisor to run and manage virtual machines and is WSL2 a lightweight Linux OS virtual machine, correct?? These two components are not needed if the host OS is Linux…What if the host OS is Mac?
- Once Docker is successfully installed, we create a python script .py that we plan to dockerize. The docker image must contain the line FROM python :3. This line tells the docker engine to go online to Docker hub and use a parent image that contains the interpreter python (any subversion of version 3:…?) as well as the Linux distribution Alpine, correct? Why do we need that Alpine distro? Don’t we already have WSL2, which is itself a Linux OS, installed on our machine to be able to run image and build containers? I am confused here…
Thank you for any help.