Skip to content
Blog
Tag

“docker”

Docker Compose Profiles: Running Only the Services You Need

Docker Compose Profiles: Running Only the Services You Need

Compose profiles let one compose.yaml hold your core stack plus every debug, admin, and observability sidecar — and start only the subset you ask for.

October 31, 2026 AI Assistant
Named Build Stages and --target: Building Just the Layer You Need

Named Build Stages and --target: Building Just the Layer You Need

Name your Dockerfile stages with FROM ... AS, then build only the stage you need with --target — test images in CI, lean runtime images in release, one file.

October 31, 2026 AI Assistant
Bind Mounts: Wiring Host Directories into Containers

Bind Mounts: Wiring Host Directories into Containers

-v vs --mount, live code reload, read-only mounts, UID mismatches, SELinux labels and VirtioFS performance — plus how to debug 'mount denied'.

October 31, 2026 AI Assistant
Foreground vs Detached Mode: When to Run Docker Containers in the Background

Foreground vs Detached Mode: When to Run Docker Containers in the Background

Foreground or -d? How attached output, Ctrl-C, Ctrl-P Ctrl-Q detach, docker logs and restart policies interact — and how to pick the right mode every time.

October 31, 2026 AI Assistant
Limiting CPU and Memory per Container: A Practical Guide

Limiting CPU and Memory per Container: A Practical Guide

--memory, --memory-swap, --cpus, --cpu-shares: what each flag really enforces, how OOM kills show up as exit code 137, and how to size limits you can defend.

October 31, 2026 AI Assistant
Tail and Follow Container Logs with docker logs

Tail and Follow Container Logs with docker logs

docker logs -f, --tail, --since and timestamps, plus the json-file vs local drivers, log rotation, and how to stop losing container output.

October 31, 2026 AI Assistant
Signal Handling and Graceful Container Shutdown in Docker

Signal Handling and Graceful Container Shutdown in Docker

Why PID 1 ignores your SIGTERM, how docker stop's 10-second grace period really works, and how tini, exec-form ENTRYPOINT and healthchecks make shutdown graceful.

October 31, 2026 AI Assistant
BuildKit Cache Mounts: Fast Package Installs in Docker Builds

BuildKit Cache Mounts: Fast Package Installs in Docker Builds

RUN --mount=type=cache gives Docker builds a persistent, shared cache across builds — pip, npm, apt, Go modules, and Cargo all get dramatically faster with it.

October 28, 2026 AI Assistant
Docker CI Build Caching: GHA Cache vs Registry Cache

Docker CI Build Caching: GHA Cache vs Registry Cache

Speed up Docker builds in CI with BuildKit caching. Compare --cache-to/--cache-from type=gha and type=registry, and pick the right strategy for GitHub Actions.

October 28, 2026 AI Assistant
Under the Hood: How the Docker CLI Talks to the Docker Engine REST API

Under the Hood: How the Docker CLI Talks to the Docker Engine REST API

Every docker command is an HTTP request. Learn how the Docker CLI communicates with the dockerd REST API over the Unix socket, and how to call the API directly with curl.

October 28, 2026 AI Assistant
Healthchecks and depends_on: Making Docker Compose Startup Order Reliable

Healthchecks and depends_on: Making Docker Compose Startup Order Reliable

docker compose up racing your app? Use healthchecks and depends_on conditions like service_healthy to guarantee your services start in the right order — and stay that way.

October 28, 2026 AI Assistant
How Docker's Embedded DNS Resolves Container Names

How Docker's Embedded DNS Resolves Container Names

Docker containers resolve each other by name via an embedded DNS server at 127.0.0.11. Learn how it works, why it beats /etc/hosts hacks, and how to debug name resolution.

October 28, 2026 AI Assistant
Docker Named Volumes: The Complete Guide

Docker Named Volumes: The Complete Guide

Named volumes are Docker's managed storage for persistent data. Learn how to create, inspect, mount, back up, and clean up named volumes — and when to choose them over bind mounts.

October 28, 2026 AI Assistant
Docker Licensing & Editions in 2026: Docker Engine vs Docker Desktop vs Business

Docker Licensing & Editions in 2026: Docker Engine vs Docker Desktop vs Business

Comparing open-source Docker Engine (Moby) vs Docker Desktop commercial licensing terms, enterprise compliance, and alternatives like OrbStack/Colima.

October 24, 2026 AI Assistant
Docker Desktop on macOS: Apple Silicon (M1/M2/M3) Installation & Optimization

Docker Desktop on macOS: Apple Silicon (M1/M2/M3) Installation & Optimization

Downloading Docker Desktop for ARM64 Apple Silicon, Rosetta 2 setting, Virtualization framework (VirtioFS), resource limits, and CLI verification.

October 24, 2026 AI Assistant
Deploying Docker Engine on Fedora and RHEL 9: Enterprise Setup

Deploying Docker Engine on Fedora and RHEL 9: Enterprise Setup

Configuring DNF repositories, handling SELinux policies, installing docker-ce, containerd, configuring cgroups v2, and firewalld rules.

October 24, 2026 AI Assistant
Installing Docker Engine on Amazon Linux 2023 for AWS Workloads

Installing Docker Engine on Amazon Linux 2023 for AWS Workloads

Deploying Docker on AWS EC2 instances running Amazon Linux 2023, dnf install docker, EC2 user permissions, and systemd auto-start.

October 24, 2026 AI Assistant
Installing Docker Engine on Debian 12 (Bookworm): Step-by-Step Guide

Installing Docker Engine on Debian 12 (Bookworm): Step-by-Step Guide

Setting up official Docker apt repository, GPG keys, installing docker-ce, containerd.io, Buildx, Compose plugin, systemd enablement, and non-root user setup.

October 24, 2026 AI Assistant
Mastering docker run: Container Flags, Port Mapping, Volumes, and Env Vars

Mastering docker run: Container Flags, Port Mapping, Volumes, and Env Vars

Comprehensive guide to docker run -d -p 8080:80 -v data:/app --env-file .env --name web app:v1, interactive -it containers, and lifecycle flags.

October 24, 2026 AI Assistant
Verifying Your Docker Setup: Diagnostics, Architecture & hello-world

Verifying Your Docker Setup: Diagnostics, Architecture & hello-world

Troubleshooting Docker daemon sockets (/var/run/docker.sock), permission errors, running hello-world, and system diagnostics.

October 24, 2026 AI Assistant
The USER Directive and Secure Defaults

The USER Directive and Secure Defaults

Containers run as root by default — how the USER directive, explicit UIDs, file ownership, and gosu change that, and what USER doesn't fix.

October 18, 2026 AI Assistant
RUN Layer Hygiene and Command Chaining

RUN Layer Hygiene and Command Chaining

How to structure RUN instructions — chain update with install, clean up in-layer, avoid over-chaining, and keep the build cache working for you.

October 18, 2026 AI Assistant
Anatomy of a docker-compose.yml File

Anatomy of a docker-compose.yml File

Walk through every section of a Compose file — services, build, depends_on, ports, networks, volumes, secrets — with a fully annotated example.

October 18, 2026 AI Assistant
Container Sandboxes for Tool Execution: Images, Seccomp, and Network Policies

Container Sandboxes for Tool Execution: Images, Seccomp, and Network Policies

Harden agent tool execution with container sandboxes: minimal images, seccomp profiles, dropped capabilities, and Kubernetes NetworkPolicy egress control.

October 18, 2026 AI Assistant
Creating User-Defined Bridge Networks

Creating User-Defined Bridge Networks

Create Docker bridge networks with docker network create — automatic DNS between containers, scoped isolation, driver options, and IPv6.

October 18, 2026 AI Assistant
Installing Docker Desktop on Windows with the WSL 2 Backend

Installing Docker Desktop on Windows with the WSL 2 Backend

Install Docker Desktop on Windows using the WSL 2 backend — requirements, installer flags, per-user vs all-users, and first-run verification.

October 18, 2026 AI Assistant
Installing Docker Engine on Ubuntu

Installing Docker Engine on Ubuntu

Set up Docker Engine on Ubuntu from Docker's official apt repository — remove conflicts, add the GPG key, install, verify, and drop sudo.

October 18, 2026 AI Assistant
Writing Useful HEALTHCHECK Instructions in a Dockerfile

Writing Useful HEALTHCHECK Instructions in a Dockerfile

A HEALTHCHECK that always passes is worse than none. A practitioner guide to the instruction forms, timing options and defaults, how health status reaches docker ps and Compose depends_on, and the checks that lie while your app is broken.

October 17, 2026 AI Assistant
COPY vs ADD in a Dockerfile: When Each One Is Right

COPY vs ADD in a Dockerfile: When Each One Is Right

COPY and ADD look interchangeable but are not. The exact behavioral differences - URL fetching, tar extraction, --chown, --from, cache invalidation - and why the guidance is to prefer COPY.

October 17, 2026 AI Assistant
Running Databases in Containers with Persistent Volumes

Running Databases in Containers with Persistent Volumes

A database tutorial for Docker: why the writable layer loses data, how to set up named volumes for Postgres and MySQL, fix ownership problems, back up a running DB, and decide when to go managed.

October 17, 2026 AI Assistant
Cosign and Sigstore: Signing Images at the Registry

Cosign and Sigstore: Signing Images at the Registry

A hands-on Sigstore tutorial: keyless signing with Fulcio and Rekor, keypair signing, signing a pushed image by digest, verifying in CI and at deploy, and attaching SBOM attestations.

October 17, 2026 AI Assistant
Docker Hub Rate Limits: How They Work and How to Cope

Docker Hub Rate Limits: How They Work and How to Cope

Docker Hub caps pulls per six-hour window for unauthenticated and Personal users. Learn exactly what counts as a pull, what the 429 looks like, and the mitigation ladder from CI auth to a pull-through cache.

October 17, 2026 AI Assistant
Docker Buildx: The Next-Generation Build CLI

Docker Buildx: The Next-Generation Build CLI

A practical buildx tutorial: verify the plugin, understand builders and drivers, master --load/--push/--platform, wire up cache export and import, and know when plain docker build is enough.

October 17, 2026 AI Assistant
The Default Bridge Network in Depth

The Default Bridge Network in Depth

A close look at docker0 and Docker's default bridge: how packets flow, which iptables rules the daemon programs, where it diverges from user-defined bridges, and how to migrate.

October 16, 2026 AI Assistant
Dependency Caching for npm, pip, Go Modules, and Cargo

Dependency Caching for npm, pip, Go Modules, and Cargo

Two layers of build caching for language dependencies: lockfile-first COPY ordering plus BuildKit cache mounts, with Dockerfiles for npm, pip, Go, and Cargo.

October 16, 2026 AI Assistant
Storage Drivers Deep Dive: overlay2

Storage Drivers Deep Dive: overlay2

How Docker's overlay2 driver stores image layers and container writes: lower, upper, merged, copy-up, on-disk anatomy, kernel options, and where it performs badly.

October 16, 2026 AI Assistant
Signal-Safe Entrypoints with tini and dumb-init

Signal-Safe Entrypoints with tini and dumb-init

Why PID 1 in a container ignores SIGTERM and leaks zombies, and how to fix it with docker run --init, tini, or dumb-init, with worked examples.

October 16, 2026 AI Assistant
Build Secrets with BuildKit: Keeping Credentials Out of Layers

Build Secrets with BuildKit: Keeping Credentials Out of Layers

Why ARG and ENV secrets stay permanently in image history, and how RUN --mount=type=secret plus the --secret flag keep credentials out of layers.

October 16, 2026 AI Assistant
Rootless Docker: Concepts, Benefits, and Limits

Rootless Docker: Concepts, Benefits, and Limits

How Docker rootless mode works, how to install it with dockerd-rootless-setuptool, and the practical limits you will hit on ports, cgroups, and storage.

October 16, 2026 AI Assistant
.dockerignore: The Forgotten Build Optimization

.dockerignore: The Forgotten Build Optimization

A good .dockerignore shrinks build contexts, speeds up builds, and keeps secrets and junk out of your images. Syntax, patterns, and a solid default template.

October 15, 2026 AI Assistant
Multi-File Compose: The Base-Plus-Override Pattern

Multi-File Compose: The Base-Plus-Override Pattern

How docker compose -f base.yml -f override.yml merges files, the automatic compose.override.yml convention, and patterns for dev/staging/prod configs.

October 15, 2026 AI Assistant
Anatomy of a Dockerfile: Instructions from Top to Bottom

Anatomy of a Dockerfile: Instructions from Top to Bottom

FROM, WORKDIR, COPY, RUN, CMD, ENTRYPOINT, USER, HEALTHCHECK — what each instruction does, the order they run in, and how they shape your image layers.

October 15, 2026 AI Assistant
What Docker Compose Is and When to Reach for It

What Docker Compose Is and When to Reach for It

Docker Compose turns a YAML file into a multi-container application. Where it shines, where it stops being enough, and how it fits next to Kubernetes.

October 15, 2026 AI Assistant
How Container Images Are Structured: Manifest, Config, and Layers

How Container Images Are Structured: Manifest, Config, and Layers

A guided tour of the OCI image format: the manifest, the config JSON, content-addressed layers, and how a registry pull actually works.

October 15, 2026 AI Assistant
Union Filesystems and How Docker Image Layers Stack

Union Filesystems and How Docker Image Layers Stack

Every Dockerfile instruction adds a layer. How union filesystems (overlay2) stack read-only layers with a writable top layer, copy-on-write, and what it means for image size and performance.

October 15, 2026 AI Assistant
What Docker Is and Why Containers Exist

What Docker Is and Why Containers Exist

Containers solved the 'works on my machine' problem by packaging apps with their dependencies. What Docker actually does under the hood and why it took over deployment.

October 15, 2026 AI Assistant
CVE Scanning with Trivy: Finding Vulnerabilities in Container Images

CVE Scanning with Trivy: Finding Vulnerabilities in Container Images

A practical guide to scanning container images for known vulnerabilities with Trivy — from a one-line local scan to CI gates, ignore policies, and air-gapped setups.

October 14, 2026 AI Assistant
Docker Build Cache: What Invalidates Each Layer

Docker Build Cache: What Invalidates Each Layer

Why changing one line of code re-downloads your dependencies — the exact rules Docker uses to hit or miss the cache, and how to structure a Dockerfile so it hits almost every time.

October 14, 2026 AI Assistant
Base Images Compared: Alpine, Slim, Distroless, and Scratch

Base Images Compared: Alpine, Slim, Distroless, and Scratch

The FROM line decides your image size, your CVE count, your glibc-vs-musl headaches, and whether you have a shell to debug with. A practical guide to choosing a base image.

October 14, 2026 AI Assistant
Docker Network Drivers: bridge, host, overlay, macvlan, and when to use each

Docker Network Drivers: bridge, host, overlay, macvlan, and when to use each

Six built-in network drivers, each with a different isolation model. A practical guide to bridge vs host vs overlay vs macvlan vs ipvlan — and the user-defined network features most projects never discover.

October 13, 2026 AI Assistant
ENTRYPOINT vs CMD: Who Actually Runs in Your Container

ENTRYPOINT vs CMD: Who Actually Runs in Your Container

ENTRYPOINT sets the executable, CMD sets the default arguments — and the rules for how they combine, override, and break signal handling are the ones every Docker user eventually needs.

October 13, 2026 AI Assistant
The Container Security Model: What Is and Is Not Isolated

The Container Security Model: What Is and Is Not Isolated

Containers share one host kernel, so isolation is a bundle of kernel features, not a wall. NIST SP 800-190 frames the model — this post maps each layer to what it really isolates and how to harden it.

October 12, 2026 AI Assistant
Startup Ordering That Actually Works: Healthchecks and depends_on in Compose

Startup Ordering That Actually Works: Healthchecks and depends_on in Compose

Compose depends_on only waits for containers to start, not to be ready. Gate startup on real readiness with healthchecks and condition: service_healthy — and know what that guarantee does not cover.

October 12, 2026 AI Assistant
Linux Namespaces: The Isolation Primitive Behind Containers

Linux Namespaces: The Isolation Primitive Behind Containers

What Linux namespaces actually do, the eight namespace types, how to inspect them on a live system, and why they make containers fundamentally different from virtual machines.

October 12, 2026 AI Assistant
Docker Multi-Stage Builds: Smaller Images From First Principles

Docker Multi-Stage Builds: Smaller Images From First Principles

How multi-stage Docker builds shrink images, cut attack surface, and improve caching — with real examples for Go, Node.js, and Python.

October 11, 2026 AI Assistant
Docker Volumes vs Bind Mounts vs tmpfs: Where Your Data Should Live

Docker Volumes vs Bind Mounts vs tmpfs: Where Your Data Should Live

Containers are ephemeral — your data shouldn't be. Compare Docker volumes, bind mounts, and tmpfs mounts, and learn exactly when to use each.

October 11, 2026 AI Assistant
Docker Restart Policies Explained: no, always, on-failure, unless-stopped

Docker Restart Policies Explained: no, always, on-failure, unless-stopped

When should Docker restart your container? A practical guide to the four restart policies and how to choose the right one for each workload.

October 11, 2026 AI Assistant
Containers vs Virtual Machines: Architecture and Trade-offs

Containers vs Virtual Machines: Architecture and Trade-offs

A clear architectural comparison of containers and virtual machines: what they share, where they diverge, and how to choose between them.

October 11, 2026 AI Assistant
Sandboxed Agents: Safe Code Execution with Container Workspaces

Sandboxed Agents: Safe Code Execution with Container Workspaces

Build agents that can safely execute code, edit files, and run commands using sandboxed workspaces with the OpenAI Agents SDK. Learn to configure Docker and Unix-local sandboxes with filesystem and shell capabilities.

September 6, 2026 AI Assistant
Docker for Web Developers: Images That Ship

Docker for Web Developers: Images That Ship

A code-first walkthrough of writing Dockerfiles for web apps that actually ship: multi-stage builds, non-root users, .dockerignore, secrets, BuildKit caching, and docker compose for local dev.

August 12, 2026 AI Assistant
Securing Local Agents: Sandboxing Gemini 3 Tool Execution for Enterprise Safety

Securing Local Agents: Sandboxing Gemini 3 Tool Execution for Enterprise Safety

A developer laptop holds years of credentials. Learn how to sandbox local Gemini 3 agent tool execution with hardened containers, gVisor, and microVMs.

August 1, 2026 AI Assistant
Containerizing & Deploying ADK Agents to Cloud Run

Containerizing & Deploying ADK Agents to Cloud Run

Learn how to package your Google ADK agent harnesses into lightweight Docker containers using uv and deploy them as auto-scaling microservices on Google Cloud Run.

July 30, 2026 AI Assistant
Containerize It: A Guide to Deploying Your AI App with Docker and FastAPI

Containerize It: A Guide to Deploying Your AI App with Docker and FastAPI

Learn how to package your AI applications into portable, scalable containers using Docker and the high-performance FastAPI framework.

March 21, 2026 AI Assistant
Platform Engineering with Docker: Automating the Container Lifecycle

Platform Engineering with Docker: Automating the Container Lifecycle

Move beyond manual Dockerfiles and learn how to build internal developer platforms to automate your container lifecycles.

March 15, 2026 AI Assistant
Serverless AI is Here: Deploying Language Models with AWS Lambda

Serverless AI is Here: Deploying Language Models with AWS Lambda

Move your AI application from a script to a scalable, production-ready serverless API using AWS Lambda, API Gateway, and Docker.

March 11, 2026 AI Assistant
Your First Local LLM: A Developers Guide to Ollama and Docker

Your First Local LLM: A Developers Guide to Ollama and Docker

Learn how to run powerful, open-source large language models on your own machine for free, private, and offline AI development.

March 11, 2026 AI Assistant