Containers and Dockers Flashcards

Basics of containers and Dockers

1
Q

What is a Container?

A

A standardized, executable software unit that packages application code with all necessary dependencies, allowing consistent execution across different computing environments.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What is a Container Engine?

A

Software responsible for creating, running, managing, and destroying containers.

Example: Docker Engine.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What are Container Orchestrators?

A

Tools that automate deployment, scaling, and management of containerized applications across clusters of hosts.

Examples: Kubernetes, Docker Swarm.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What is Container as a Service (CaaS)?

A

A cloud service model that enables users to deploy, manage, and run containers using a provider’s infrastructure.

Examples: Amazon ECS, Azure Container Instances.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What are OS Containers?

A

Containers that virtualize an entire operating system environment, allowing multiple isolated user-spaces on a single OS kernel.

Example: LXC.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

What are Application Containers?

A

Containers designed to encapsulate and run individual applications, along with their specific dependencies and libraries.

Example: Docker Containers.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

What is Docker?

A

A platform that packages, distributes, and manages applications using containerization technology.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

What is Docker Engine?

A

The runtime software powering Docker, responsible for creating and managing containers.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

What is Docker Daemon?

A

A background service running on the Docker host, managing container operations such as creation, running, and removal.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

What is Docker Engine REST API?

A

An HTTP-based interface through which Docker clients communicate with Docker Daemon to manage containers remotely.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

What is Docker CLI (Command Line Interface)?

A

A command-line tool used by users to interact with Docker Daemon via the Docker REST API.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

What is the Docker Systems Working Mechanism?

A

Docker operates through a client-server architecture where the Docker client sends commands via REST API to Docker Daemon on the Docker Host, managing containers, images, and registries.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

What is Docker Client?

A

The primary interface used by users to interact with Docker Engine, issue commands, and control containers.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

What is Docker Host?

A

A machine (physical or virtual) that runs the Docker Daemon, hosting containers.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

What are Images (Docker Images)?

A

Read-only templates used to create Docker containers, containing application code, runtime libraries, and dependencies.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

What are Docker Registries?

A

Repositories that store Docker images, allowing users to pull or push images remotely.

Example: Docker Hub.

17
Q

What is a Microservices Application?

A

A software architecture composed of multiple small, independently deployable services, each running in its own container.

18
Q

What is a Monolithic Application?

A

A single-tiered software architecture where all components (user interface, server-side logic, and database interactions) are combined into one unified system.

19
Q

What is the Container Networking Model (CNM)?

A

A Docker-defined specification providing standardized container networking capabilities, enabling containers to communicate efficiently.

20
Q

What is a Sandbox (CNM)?

A

An isolated networking environment created for each container, defining its network namespace and interfaces.

21
Q

What is an Endpoint (CNM)?

A

A virtual network interface attached to a container’s sandbox, allowing network connectivity.

22
Q

What are CNM Driver Interfaces?

A

Standard interfaces through which Docker interacts with networking plugins to manage container networking resources.

23
Q

What are the types container Network Drivers?

A

Drivers that manage container networking.

  • Native: Network drivers integrated within Docker Engine (e.g., bridge, overlay).
  • Remote: External third-party network plugins enabling extended networking capabilities.
24
Q

What are IP Address Management (IPAM) Drivers?

A

Drivers managing allocation and assignment of IP addresses to Docker containers.

25
What is the Host Network Driver?
Networking mode that directly uses the host’s networking stack, eliminating network isolation for containers.
26
What is the Bridge Network Driver?
Default Docker network driver that provides isolated networking by creating a virtual bridge allowing container-to-container communication.
27
What is the Overlay Network Driver?
Docker network driver enabling multi-host networking, allowing containers on different Docker hosts to communicate seamlessly.
28
What is the MACVLAN Network Driver?
Network driver allowing containers to have unique MAC addresses and direct physical network connectivity, similar to virtual network interfaces.
29
What is the None Network Driver?
A Docker networking mode disabling all networking for a container, providing complete isolation from external networks.
30
Serverless Computing
A cloud-computing execution model where the cloud provider dynamically manages the allocation and provisioning of servers.
31
Function as a Service (FaaS)
cloud computing service model that enables developers to deploy **individual functions**, which are then **executed in response to events** without the need to manage the underlying infrastructure
32
Cold Start
The initial delay that occurs when a serverless function is invoked after not being used for a while, due to the need to start up the execution environment.
33
VM Sprawl
A situation where unmanaged, excessive virtual machines are deployed, leading to inefficient use of resources and potential security risks.
34
VM Escape
A security breach where a malicious program inside a virtual machine breaks out and gains access to the host system or other VMs.
35
Cross-Container Attacks
Security threats where an attacker compromises one container and uses it to attack other containers on the same **host or not**.
36
Inter-Container Attacks
Attacks that occur between containers co-located **on the same host**. The attacker exploits **insecure communication channels** between containers.
37
Docker Registry Attacks
Attacks that target Docker registries, which may involve pushing malicious images or pulling compromised images that can then infect systems.
38
SILUMR — Docker Security Best Practices
- **S** – Socket: Avoid exposing the Docker daemon socket - **I** – Image: Use only trusted Docker images - **L** – Limit: Limit container capabilities to only what’s needed - **U** – Update: Regularly patch host OS and Docker - **M** – Modules: Use seccomp, AppArmor, SELinux - **R** – Read-only: Set file systems/volumes as read-only (`--read-only`)
39
CARSSI — Container Security Best Practices
- **C** – CVEs: Monitor and remediate container runtime vulnerabilities - **A** – App-aware: Use tools to monitor network anomalies - **R** – Run as User: Avoid running containers as root - **S** – Secure Root FS: Use read-only mode for host root filesystem - **S** – Scanning Tools: Employ tools to detect malicious software - **I** – Image Scanning: Regularly scan container images for issues