Ravindra BagaleCourses & study guides मराठी

Ravi Sir's Cards › DevOps

DevOps

Chapter 47: Docker Architecture, Installation on Linux, Windows and Mac, and Docker Desktop Alternatives: Cards

मराठी cards · Open the chapter

Revision cards

Why Docker: works on my machine. Apps break when the server differs from the laptop.
Revision card 1 of 15: Why Docker: works on my machine · Download PNG · Open card page

Lesson: 47.1 Why Docker: works on my machine, devs vs ops

Virtual machines vs containers. Running one app per VM wastes RAM and boot time.
Revision card 2 of 15: Virtual machines vs containers · Download PNG · Open card page

Lesson: 47.2 Virtual machines vs containers

Docker architecture: who does what. Knowing the parts makes errors easy to read.
Revision card 3 of 15: Docker architecture: who does what · Download PNG · Open card page

Lesson: 47.3 Docker architecture: client, daemon, containerd, runc, registry

Namespaces and cgroups. Containers need isolation and limits without a VM.
Revision card 4 of 15: Namespaces and cgroups · Download PNG · Open card page

Lesson: 47.4 Namespaces and cgroups: how isolation really works

Install Docker Engine on Ubuntu. The distro docker.io package is often old.
Revision card 5 of 15: Install Docker Engine on Ubuntu · Download PNG · Open card page

Lesson: 47.5 Install Docker Engine on Ubuntu

Install Docker on Amazon Linux and RHEL. Each Linux family has its own package path.
Revision card 6 of 15: Install Docker on Amazon Linux and RHEL · Download PNG · Open card page

Lesson: 47.6 Install Docker on Amazon Linux 2023 and RHEL

Docker on Windows with WSL 2. Linux containers need a Linux kernel on Windows.
Revision card 7 of 15: Docker on Windows with WSL 2 · Download PNG · Open card page

Lesson: 47.7 Docker on Windows with WSL 2, step by step

Docker Desktop and its licence. Teams need to know what Desktop includes and when it costs money.
Revision card 8 of 15: Docker Desktop and its licence · Download PNG · Open card page

Lesson: 47.8 Docker Desktop: what it includes, install and licence

Alternatives to Docker Desktop. Some companies cannot use Desktop or want something lighter.
Revision card 9 of 15: Alternatives to Docker Desktop · Download PNG · Open card page

Lesson: 47.9 Alternatives to Docker Desktop

Rootless mode and post-install. A root daemon means a container escape can become host root.
Revision card 10 of 15: Rootless mode and post-install · Download PNG · Open card page

Lesson: 47.10 Rootless mode and post-install setup

docker system, context and login. Disks fill up and you manage more than one host.
Revision card 11 of 15: docker system, context and login · Download PNG · Open card page

Lesson: 47.11 Docker system, context and login commands: full reference

All Docker commands step by step. Beginners forget which command comes next.
Revision card 12 of 15: All Docker commands step by step · Download PNG · Open card page

Lesson: 47.12 All Docker Commands Step by Step with Examples

docker init: starter files. Writing the first Dockerfile from zero is slow and error-prone.
Revision card 13 of 15: docker init: starter files · Download PNG · Open card page

Lesson: 47.13 docker init: generate a Dockerfile, Compose file and .dockerignore

Docker contexts and remote Docker over SSH. SSH-ing in and typing commands on servers is slow and not repeatable.
Revision card 14 of 15: Docker contexts and remote Docker over SSH · Download PNG · Open card page

Lesson: 47.14 Docker contexts and remote Docker over SSH

Dev Containers and Testcontainers. New joiners lose days installing the right versions.
Revision card 15 of 15: Dev Containers and Testcontainers · Download PNG · Open card page

Lesson: 47.15 Dev Containers, Testcontainers and Docker Desktop extras

Interview cards

Why do companies use Docker? It packages an app and its dependencies into one portable image, so dev, test and prod run the same thing.
Interview card 1 of 15: Why do companies use Docker? · Download PNG · Open card page

Lesson: 47.1 Why Docker: works on my machine, devs vs ops

Container vs VM? A VM has its own kernel via a hypervisor; a container shares the host kernel and is isolated with namespaces and cgroups.
Interview card 2 of 15: Container vs VM? · Download PNG · Open card page

Lesson: 47.2 Virtual machines vs containers

What happens when you run docker run? CLI calls the dockerd API, image is pulled if missing, containerd and runc create namespaces and cgroups and start the process.
Interview card 3 of 15: What happens when you run docker run? · Download PNG · Open card page

Lesson: 47.3 Docker architecture: client, daemon, containerd, runc, registry

Namespaces vs cgroups? Namespaces = isolation (what you see). cgroups = resource limits (what you use). Together they make a container.
Interview card 4 of 15: Namespaces vs cgroups? · Download PNG · Open card page

Lesson: 47.4 Namespaces and cgroups: how isolation really works

How do you install Docker on Ubuntu? Add Docker's apt repo and GPG key, install docker-ce, containerd.io, buildx and compose plugins, enable the service.
Interview card 5 of 15: How do you install Docker on Ubuntu? · Download PNG · Open card page

Lesson: 47.5 Install Docker Engine on Ubuntu

How do you install Docker on Amazon Linux 2023? sudo dnf install -y docker, then systemctl enable --now docker and add ec2-user to the docker group.
Interview card 6 of 15: How do you install Docker on Amazon Linux 2023? · Download PNG · Open card page

Lesson: 47.6 Install Docker on Amazon Linux 2023 and RHEL

How does Docker run on Windows? Docker Desktop uses the WSL 2 Linux VM for Linux containers (Hyper-V is the older backend); Windows containers are a separate mode.
Interview card 7 of 15: How does Docker run on Windows? · Download PNG · Open card page

Lesson: 47.7 Docker on Windows with WSL 2, step by step

Is Docker Desktop free? Per Docker's terms: free for personal, education, non-commercial open source and small businesses (and paid plan.
Interview card 8 of 15: Is Docker Desktop free? · Download PNG · Open card page

Lesson: 47.8 Docker Desktop: what it includes, install and licence

Name alternatives to Docker Desktop. Rancher Desktop, Podman Desktop, Colima (Mac), OrbStack (Mac), Docker Engine in WSL 2, containerd with nerdctl.
Interview card 9 of 15: Name alternatives to Docker Desktop. · Download PNG · Open card page

Lesson: 47.9 Alternatives to Docker Desktop

What is rootless Docker? The daemon and containers run as a non-root user, so a breakout does not give host root. Limits: ports below 1024, some network drivers.
Interview card 10 of 15: What is rootless Docker? · Download PNG · Open card page

Lesson: 47.10 Rootless mode and post-install setup

How do you free Docker disk space safely? Check with docker system df, then docker system prune (add -a for unused images, --volumes only if data is not needed).
Interview card 11 of 15: How do you free Docker disk space safely? · Download PNG · Open card page

Lesson: 47.11 Docker system, context and login commands: full reference

Which Docker commands do you use daily? docker ps, logs -f, exec -it, build -t, push, compose up -d and system df.
Interview card 12 of 15: Which Docker commands do you use daily? · Download PNG · Open card page

Lesson: 47.12 All Docker Commands Step by Step with Examples

What does docker init do? It detects the language and generates a best-practice Dockerfile, compose.yaml and .dockerignore.
Interview card 13 of 15: What does docker init do? · Download PNG · Open card page

Lesson: 47.13 docker init: generate a Dockerfile, Compose file and .dockerignore

How do you manage a remote Docker host securely? Use a docker context over SSH; never expose the Docker TCP API without TLS.
Interview card 14 of 15: How do you manage a remote Docker host securely? · Download PNG · Open card page

Lesson: 47.14 Docker contexts and remote Docker over SSH

What are Dev Containers? A devcontainer.json that makes VS Code or Codespaces open the project inside a container with the exact tools.
Interview card 15 of 15: What are Dev Containers? · Download PNG · Open card page

Lesson: 47.15 Dev Containers, Testcontainers and Docker Desktop extras

Comparison cards

VM vs Container. VM: full guest OS on a hypervisor.Container: isolated process on the host kernel.
Comparison card 1 of 3: VM vs Container · Download PNG · Open card page

Lesson: 47.2 Virtual machines vs containers

Namespaces vs cgroups. Namespaces: isolate what a process sees.cgroups: limit what it uses.
Comparison card 2 of 3: Namespaces vs cgroups · Download PNG · Open card page

Lesson: 47.4 Namespaces and cgroups: how isolation really works

Docker Desktop vs Podman Desktop. Docker Desktop: Docker's GUI app with Engine, Compose, Kubernetes.Podman Desktop: GUI for daemonless Podman.
Comparison card 3 of 3: Docker Desktop vs Podman Desktop · Download PNG · Open card page

Lesson: 47.9 Alternatives to Docker Desktop