Containerization and Role in CI CD Flashcards
What is a container?
Containers allow any application to be stored in a self-contained environment called a container. The container runs on top of an operating system which is shared among multiple containers, making the environment very efficient.
Can multiple apps run on one operating system?
Yes.
Are containers virtual machines?
No! There is a clear distinction: a virtual
machines give a separate operating
system to each application whereas
multiple containers can share an
operating system
Containers in CI CD
Containers are used in the local environment so different developers all have access to the same environment. Containers are also used to deploy production apps.
What is a Docker image?
A Docker image is a static, read-only template that contains a set of instructions for creating a Docker container.
It provides the environment setup, software, libraries, and dependencies that will be installed in the container.
How are Docker Images built?
Images are built from a Dockerfile,
which is a script composed of various
commands and arguments that define
the operating system, libraries,
environment variables, and files.
Where are Docker Images stored?
Images are often stored and shared through Docker Hub or other container registries, allowing them to be reused by others.
What is a Docker Container?