Docker Complete Reference Index
Select any item below to open its full syntax specification, parameters, and live example.
Docker Concepts
.dockerignore# one exclusion pattern per line
Filter build inputs using patterns at the root of the context. Special recipe and ignore files can still be needed by the builder when excluded from COPY. Existing images are unchanged. Keep real secrets out of the context regardless of ignore rules. Recipe-specific ignore files take precedence over the root file; keep confidential inputs outside the context.
Application image contract
Define expected default command, valid inputs, output, failure status and runtime identity. Smoke tests check selected observable behavior, not complete production readiness. Check exact negative output and status; combined output does not establish stream separation.
Bind mounts--mount type=bind,src=HOST_PATH,dst=CONTAINER_PATH[,readonly]
Connect a daemon-host file or directory to a container path without copying it into the image. A writable bind mount can alter host data. Default --mount requires an existing source; short -v may create a directory. Use only a fresh synthetic fixture, preferably read-only. Use a fresh private directory without symlinks, submounts or commas in its path. Recursive read-only behavior depends on the kernel.
Build cache
A builder can reuse results when its operation and relevant inputs match. A cache miss can invalidate dependent operations. Cache availability is not a correctness guarantee. Cache hits do not establish freshness or current execution.
BuildKit
Build backend that solves a dependency graph, manages cache and exports results. Buildx is the CLI extension; driver, frontend and output settings matter. Check the effective driver and endpoint of the exact build command before contacting it.
Docker Observability
Alert persistence and missing datafor: 5m (Prometheus alert rule field)
Require an active expression result across the specified evaluation duration before firing. Handle absent samples separately; use actionable ownership. The offline model resets continuity on gaps over 60 seconds; this is not universal Prometheus behavior.
Application telemetry correlationtrace ID / span ID / request ID
Associate records via propagated context; keep high-cardinality identifiers out of metric labels and avoid sensitive data. Bound label values and distinguish missing sampled traces from absent operations.
Bounded Docker event historydocker events --since TIME --until TIME --filter FILTER
Collect recent state transitions with time and object filters; retained history is limited to 256 events. Preserve identity and clock context. Bind filters to verified identities and record explicit time bounds.
Docker CI/CD
Docker Professional Capstone
Docker Desktop and Portability
Docker Resource Management
Docker Buildx and Multi-platform
Build and target platform argumentsBUILDPLATFORM / TARGETPLATFORM / TARGETOS / TARGETARCH
Use automatic platform arguments to distinguish the build stage from the desired artifact. Redeclare target ARGs inside a stage before RUN. Local Go test does not validate the illustrative base or Dockerfile build.
Build emulationQEMU user-mode emulation
Execute foreign-architecture instructions when the environment supports them. Record actual emulator and test mode; do not modify host configuration in an ordinary lab. Record native versus emulated execution separately.
Buildx SBOM attestation--sbom=true
Request component inventory metadata. Confirm exporter preservation, subject digest and trust; not equivalent to vulnerability scanning. Check subject, completeness, preservation and separate trust evidence.
Buildx builder driversdocker | docker-container | kubernetes | remote
Select the location and configuration of the build backend. Check platform, exporter, cache and image store support for the selected version. Check default-load and explicit output; nondefault is not always cache-only.
Docker Performance Engineering
Docker Troubleshooting
Docker CLI
Build progress modedocker build --progress=plain [OPTIONS] PATH
Plain progress is useful for examining step outcomes and failures. Log format and timing vary by version and environment. Require successful exit status before using an exported tag.
Build secret inputdocker build --secret id=<id>,src=<file> [OPTIONS] PATH
Supplies a file input separately from the normal build context. Use synthetic data only here, with the source excluded from COPY context. Use no-cache for the positive synthetic exercise to require execution.
Showing 20 of 282 entries