Docker Interview Questions. Container vs VM? VM: full OS, hypervisor, heavy (GBs), slow start. Container: shares host OS kernel, isolated process (cgroups + namespaces), lightweight (MBs), starts in ms. VMs for stronger …
ReadImages & Containers. Core Concepts. Image — read-only template (layers) built from a Dockerfile. Container — running instance of an image with a writable layer on top. Registry — storage for images (Docker Hub, GHCR, ECR…
ReadDockerfile Best Practices. Instruction Reference. # Base image — use specific tags, never :latest in prod FROM node:20-alpine # Metadata LABEL maintainer="team@company.com" # Set working directory (creates if missing) WO…
ReadDocker Compose & Networking. docker-compose.yml Structure. services: app: build: context: . dockerfile: Dockerfile target: runner # multi-stage target args: BUILD_VERSION: "1.0" image: myapp:latest container_name: myapp …
ReadDocker Interview Questions. Q: What is the difference between an image and a container?. An image is a static, read-only blueprint made of layers. A container is a running instance of that image with an additional writab…
ReadSave this stack to your personal DevRecall — add your own notes, track what you're learning, and share what you know with the community.
Get started — free forever