Answer the question
In order to leave comments, you need to log in
How does docker work?
Hello, the question is simple, but it's not very clear to me how it works. There are python images in the docker hub, they are all different in weight. The question is, what does it mean that the image is based on debian or on alpina. After all, the docker addresses directly to the wasp kernel. What does it mean based on Alpina, I don’t really understand
Answer the question
In order to leave comments, you need to log in
It's about files. Just like different distributions - the core is the same, the files are different. Due to this - a different package management system, different packages, etc.
In this case, docker is a specific assembly of the same python, but on different kernels - debian, ubuntu, etc.
In essence, the work of a docker container is the launch of your process / program in a special environment - for example, some service on the backend, the cat runs continuously or intermittently)) and, for example, listens for incoming connections on some port that can be forwarded from Docker Wirth environment to your machine - to the host. In addition, this special environment includes the distribution of this image, for example, the python image already contains the python def version with the main library and the pip package manager. By changing the corresponding base images, you can add new packages, programs, libraries to them - see also Dockerfile.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question