Container Orchestration Flashcards
What two problems do containers solve?
1) Managing the dependencies of an application
2) Runs much more efficiently than spinning up a lot of virtual machines
What is one of the earliest ancestors of modern container technologies?
chroot
What does the “chroot” command do?
The chroot command can isolate a process from the root filesystem, “hide” the files from the process and simulate a new root directory.
What are the eight namespaces of the Linux 5.6 Kernel?
1) pid (process id)
2) net (network)
3) mnt (mount)
4) ipc (inter-process communication)
5) user
6) uts (Unix time sharing)
7) cgroup
8) time
What is the difference between a virtual machine and a container?
A virtual machine emulates a complete machine and has its operating system and kernel. Containers share the kernel of the host machine and are isolated processes.
True or False
You need to use Docker to run industry-standard containers.
False
What’s the name of the container runtime reference implementation that the Open Container Initiative maintains?
runC
What is the primary use of runC?
runC is a low-level runtime used in a variety of tools to start containers, including Docker.
What does the runtime-spec describe?
The runtime-spec describes how to unpack a container image and manage the complete container lifecycle.
__________ provides a similar API as Docker and can be used as a drop-in replacement.
Podman
What is a container image?
A container image is a lightweight, standalone, executable package of software that includes everything needed to run an application, including code, runtime, system tools, system libraries and settings.
What do container images consist of?
Container images consist of a filesystem bundle and metadata.
Images can be built by reading the instructions from a buildfile called a __________.
Dockerfile
What is the purpose of a container registry?
Container registries act as a container distribution serve, where developers can upload and download different container images.
What is one of the biggest security risks of containers and why?
One of the biggest security risks of containers is that they share the same kernel as the machine they run on. This is a security risk because containers can run kernel processes with elevated privileges, which could unintentionally alter the host system.