AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |
Back to Blog
Debian container5/8/2023 ![]() some libraries) instead of a trying to ship a full operating system.Īs it usually happens, the truth lies somewhere in between both statements. $ docker exec -it nginx cat /etc/nginx/nfīuilding an image based on Alpine Linux: $ cat Dockerfileįor the newcomers learning the containerization through hands-on experimentation, this may lead to a false impression that containers are somewhat indistinguishable from full-fledged operating systems and that they are always based on well-known and wide-spread Linux distributions like debian, centos, or alpine.Īt the same time, approaching the containerization topic from the theoretical side ( 1, 2, 3) may lead to a rather opposite impression that containers (unlike the traditional virtual machines) are supposed to pack only the application (i.e. Running an nginx web-sever in a container and examine its config using cat utility: $ docker run -d -P -name nginx nginx:latest ![]() Running an interactive shell in the debian jessie distribution: $ docker run -it debian:jessie I tried to quickly compile a list of the most prominent samples. The majority of Docker examples out there explicitly or implicitly rely on some flavor of the Linux operating system sitting inside a container. To be technically accurate, the title of this article should have sounded something like Does container image have a whole Linux distribution inside? But I find this wording a bit boring for a title □ĭoes a Container have an Operating System inside? Linux distribution is a particular version of the Linux operating system like Debian or CentOS.Linux OS is a combination of the kernel and a user-land (libraries, GNU utilities, config files, etc).Linux kernel is the core part of the Linux operating system.Not every container has an operating system inside, but every one of them needs your Linux kernel.īefore going any further it's important to understand the difference between a kernel, an operating system, and a distribution.
0 Comments
Read More
Leave a Reply. |