Installs into .claude/skills of the current project.
Sponsors
SSkills DirectorySkills Directory
Know which skills are safe — weekly.
SSkills DirectorySkills Directory
Is that skill safe to install?
Are you the author of Docker Knowledge Patch?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/nevaberry-docker-knowledge-patch)
---
name: docker-knowledge-patch
description: Docker
version: "29.10.1"
license: MIT
metadata:
author: Nevaberry
---
# Docker compatibility guidance
Load this skill for Docker Engine and API migrations, daemon configuration,
networking, image operations, Go integrations, BuildKit, Buildx, Bake, or Compose.
Use the topic references for complete details and product-specific conditions.
## Reference index
| Reference | Topics |
| --- | --- |
| [Engine API](references/engine-api.md) | API compatibility, response fields, resources, streams, Swarm, pruning |
| [Runtime](references/runtime.md) | Daemon migrations, TLS, lifecycle, mounts, security profiles, rootless operation, platforms |
| [Networking](references/networking.md) | Attachments, IPAM, DNS, IPv6, gateway modes, ports, firewalls, overlays |
| [Images and registries](references/images-registry.md) | Containerd image store, registry configuration, transfers, archives, platforms, extraction |
| [Go SDK and CLI](references/go-sdk-cli.md) | Module and type migrations, client calls, plugin integration, output and flags |
| [BuildKit and Dockerfile](references/buildkit-dockerfile.md) | Frontends, lint, provenance, source verification, deployment, security fixes |
| [Buildx and Bake](references/buildx.md) | Policies, exports, variables, contexts, credentials, Imagetools, builders, debugging |
| [Compose](references/compose.md) | Builds, reconciliation, hooks, configuration, publishing, Watch, output, SDK |
## Breaking changes and deprecations
### Daemon upgrades and remote access
Remove `--oom-score-adjust` from daemon arguments. Containers using `logentries`
need a different logging driver; Debian Upstart deployments need a supported service manager.
Before upgrading to Engine 28.0.0, remove `--api-cors-header`, `api-cors-header`, and
`fluentd-async-connect`; that daemon no longer loads external graph-driver plugins.
The runtime reference preserves the temporary CORS behavior in Engine v27.
Engine v27.0 and later reject explicit `--tls=false` or `--tlsverify=false`
alongside a remote TCP listener, including equivalent daemon configuration.
Configure TLS verification for remote TCP; `tcp://localhost` is excepted from
mandatory verification. Password-encrypted legacy PEM keys are unsupported.
Engine 29.0 raised the daemon minimum to API v1.44; Engine 29.3.0 lowers it to
v1.40, restoring server-side compatibility with Docker 19.03 API clients.
Engine v29.0 deprecates cgroup v1; at least one maintained branch will support it
through May 2029. Check `Cgroup Version` in `docker info` before planning upgrades.
### Registry and image compatibility
Engine v28.2 removes Docker Image v1 and manifest v2 schema 1 support and stops
retrying failed digest pulls by tag. Publish OCI or manifest v2 schema 2 images
on registries that support digest pulls.
In Engine 29.10.0, loopback ranges default to insecure only when
`insecure-registries` is omitted. When configuring it, explicitly list local
registries requiring HTTP or untrusted TLS; an empty list disables all defaults.
```json
{"insecure-registries":["localhost:5000"]}
```
### API response and request migrations
At API v1.44, read `Size` instead of `VirtualSize` in image and disk-usage records.
Image inspection drops
`Container` and `ContainerConfig` in API v1.45; previously deprecated container-only
`Config` fields disappear in v1.50. API v1.52 omits unset image `Config.Cmd`,
`Entrypoint`, `Env`, `Labels`, `OnBuild`, `User`, `Volumes`, and `WorkingDir`;
treat absent fields as empty and allow older responses that include them.
From API v1.52, read addresses from `NetworkSettings.Networks` and configure MAC
addresses per network. Event consumers should read `Action` and `Actor` because
`status`, `id`, and `from` are removed. Read `errorDetail` and `progressDetail`
from JSON progress streams; legacy fields may be empty or omitted in a future API.
For `GET /system/df`, migrate to `ImagesUsage`, `ContainersUsage`, `VolumesUsage`,
and `BuildCacheUsage`. Legacy fields occur only in non-verbose v1.52 responses
and disappear in v1.53. Use `reserved-space` for `POST /build/prune` from v1.48.
The API history lists the legacy `keep-storage` key for removal in v1.52.
### CLI and Go integrations
Use `--timeout` for stop/restart; `--time` remains a hidden alias. CLI v29.0
rejects `bind-nonrecursive`; use `bind-recursive=disabled` to exclude submounts.
Use `docker commit --no-pause app app:snapshot` instead of `--pause=false`;
`--pause` is deprecated and scheduled for removal in v30.0.
Use the public `github.com/moby/moby/client` and `github.com/moby/moby/api`
modules. The old `github.com/docker/docker` module is deprecated. The v29 client
uses option and result structs for the operations detailed in the Go reference;
rename `ContainerExec…` calls to `Exec…`. The 29.8.0 SDK's minimum Go version is 1.26.
### Compose and builder migrations
Compose 5.0.0 removes its internal BuildKit builder and delegates all image
builds to Bake. Existing workflows must work with Bake. Compose 5.2.0 changes
workload reconciliation, so existing workloads can behave differently.
With Compose 5.5.0, existing containers may be recreated on the first
`docker compose up` after upgrading while image digests are re-evaluated.
`docker buildx install` and `docker buildx uninstall` are deprecated; invoke
Buildx directly in scripts relying on builder aliases. For policy evaluation,
replace deprecated `--filename` with `--file`. BuildKit provenance defaults to
SLSA v1.0; select v0.2 with the attestation's `version` attribute when required.
Read `InvocationId` in new attestations and accept `InvocationID` in older ones.
## Network attachment and firewall quick reference
Repeat `--network` for multiple attachments. The long form accepts per-network
`mac-address` and `link-local-ip`. Use `gw-priority` to select the default gateway;
the highest priority wins, with ties broken by lexicographic network name.
Set per-interface sysctls through `com.docker.network.endpoint.sysctls` and use
`IFNAME` for the assigned interface name. Engine 28.0.0 rejects per-interface
`--sysctl` settings such as `net.ipv4.conf.eth0.log_martians=1` on custom networks.
```sh
docker run --network name=mynet,driver-opt=com.docker.network.endpoint.sysctls=net.ipv4.conf.IFNAME.log_martians=1 alpine true
```
`docker network create --ipv6` can allocate a host-derived ULA subnet when
neither the command nor `default-address-pools` supplies an IPv6 prefix.
Use `docker network create --ipv6 --ipv4=false v6net` for an IPv6-only custom bridge.
The default bridge, Windows networks, and Swarm networks require IPv4.
With IPv6 firewalling enabled, `routed` opens published container ports over a
route to the subnet without NAT or masquerading. For mappings applying only to
`routed`, select the family with `0.0.0.0` or `::` and omit the host port.
Use `nat-unprotected` if the network deliberately needs direct routed
access to unpublished ports. The networking reference includes downgrade rules.
The nftables backend is experimental. Enable host IP forwarding for bridges
that need it and enforce forwarding policy in the host firewall.
`--ip-forward=false` skips the daemon's check and can leave bridge port forwarding
unavailable. Swarm support with nftables starts in Engine 29.10.0 and is experimental.
## Images, mounts, and daemon operations
With the containerd image store, `docker image push --platform` selects one
platform manifest. Image archive commands accept `--platform`; CLI 29.0 accepts
comma-separated lists, and API v1.52 accepts repeated JSON-encoded `platform` values.
Engine 29.9.0 lazy pulls default to enabled for `nydus`, `overlaybd`, `soci`, and
`stargz`. Disable `lazy-pull` to fetch layer blobs needed for `docker save` or
`docker push` even when unpacked layers already exist.
```json
{"features":{"lazy-pull":false}}
```
Use `type=image` mounts and `image-subpath` to mount an image directory.
These mounts work with experimental features disabled from Engine 29.7.0.
Use `VolumeOptions.Subpath` for named volume subdirectories through the API.
CLI 29.3.0 adds `bind-create-src` to create a missing bind source on the daemon host.
Use `dockerd --validate --config-file=/etc/docker/daemon.json` as a preflight;
from Engine 29.2.0 it checks system requirements as well as configuration.
Set `default-stop-timeout` for containers without an explicit timeout.
Engine 29.10.0 supports experimental one-shot and cron-scheduled workloads through
the opt-in extension enabled with `dockerd --enable-extension org.mobyproject.jobs.v0`.
## Build policy, exports, and Bake
Experimental Rego source policies can enforce build source rules. Local builds
automatically load matching files such as `Dockerfile.rego`; remote Git and HTTP
contexts are also supported. Use `buildx policy eval` and `buildx policy test`.
The Buildx reference covers Sigstore, PGP, provenance inputs, and policy diagnostics.
Set `BUILDX_DEFAULT_POLICY` to opt in to signature verification of Dockerfile
frontends and the SBOM scanner. When enabled, the default policy also verifies
BuildKit release images used by `docker buildx create --driver docker-container`.
`mode=delete` on local exports replaces destination contents and deletes files
absent from the export. Destinations outside a subdirectory of the working directory
require `--allow=buildx.local.delete` or terminal UI confirmation. Multi-platform
exports in this mode require BuildKit 0.31.0 or later.
Use `--resource` for build CPU and memory limits, or `resource` in a Bake target;
this requires BuildKit 0.31.0 or later and Dockerfile frontend 1.25.0 or later.
Use `--var` for declared Bake variables and `BUILDX_BAKE_FILE_RELATIVE_PATHS=true`
to resolve relative paths from the Bake file's directory.
## Compose operations and automation
Use `build.no_cache_filter` for named Dockerfile stages whose cache should be
bypassed. `docker compose build --print` suppresses progress output for its Bake definition.
`docker compose start --wait` waits for existing services to be running or healthy.
Service `pre_start` hooks run initialization containers before startup and may
use their own images. One-off runs execute `post_start`; restarts run configured
lifecycle hooks. Image pinning covers image mounts and `pre_start` hook images.
`docker compose pull` honors `pull_policy` refresh windows such as `daily`,
`weekly`, and `every_N`. Watch rebuilds the watched service and skips rebuilding
its `depends_on` services for that change; its limited cleanup can leave dangling images.
Parse `docker compose ps --format json` as JSON Lines, one object per container.
`docker compose config --variables` lists interpolation variables and defaults
without model validation. Automatic progress checks stderr for a terminal, so
redirecting stdout alone can still leave interactive progress enabled.