Logo/
Hema M

Shared by Hema M

Log in

Make a lecture like this from your own PDF

Drop a PDF, slides or notes here. You'll sign up, then yours starts.

0:00 / 2:06

0:00 / 2:06Why containers?
Containers: Images, Processes, and Runtime
Hema M

Shared by Hema M

Summary

Full transcript

0:00Why would a developer fold a change into an old application instead of deploying it cleanly? Deployment friction can make that shortcut tempting. A container packages essential code and dependencies, then runs as processes on the host. Docker is a tool for managing containers, not the container idea itself. Think of the host as the ground, a management tool as the frame, and containers as separate workspaces above it. One can hold Nginx and SSH, another Java and Apache, a third MySQL and Elasticsearch. The container is not a tiny computer; it groups application processes with needed files. Now make that model concrete with Nginx, pull its image, then run a container while mapping host port 8080 to container port 80. Visiting localhost colon 8080 should show the welcome page.

0:53Then list running containers, execute whoami inside one, and remove it. This is the full hands-on lifecycle. A registry is a remote store for images, like Docker Hub. Pulling an image copies it onto your machine. Running it creates a container. Deleting the local copy does not delete the registry copy. Registry deletion is separate, and storage may persist until garbage collection reclaims unreferenced layers. An image is built in layers. A base image supplies the starting file system. Instructions such as installing software or setting a working directory add layers. Some metadata changes do not. Running a container adds a writable layer above the image, so the shared image remains unchanged. Docker's client sends requests to a daemon, which manages images and containers.

1:44Containerd coordinates work. A runtime such as runC starts the isolated process, with a shim bridging it. Orchestration can sit above the engine. These pieces matter because a container is an operating system process, not a miniature virtual machine. One correction: workdir sets metadata; it does not create a layer.

Ask AI about this video

Answers cite the source. Free account, no credit card.