Skip to content
Back to skills

Docker Knowledge Patch

ASecurity

Docker

  • 25 stars
  • 0 votes
  • 0 copies
  • 17 views
  • Added September 5, 2026
developmentrustgodockergitapifrontendbackendsecurity

Works with

  • terminal
  • cli
  • api

Security analysis

A100/100

Pro scans all 10 files and shows the line behind each finding

Scanned December 1, 2026

npx -y skills add Nevaberry/nevaberry-plugins --skill docker-knowledge-patch --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Docker Knowledge Patch?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Docker Knowledge Patch
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/nevaberry-docker-knowledge-patch-nevaberry-plugins/badge)](https://www.skillsdirectory.com/skills/nevaberry-docker-knowledge-patch-nevaberry-plugins)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: docker-knowledge-patch
description: Docker
version: "29.10.1"
license: MIT
metadata:
  author: Nevaberry
---



# Docker Compatibility

Load this skill when upgrading Docker, adapting Engine API or Go clients,
configuring networking and image storage, or changing Buildx, BuildKit,
Dockerfile, and Compose workflows. Use the topic references for complete
guidance and the product-specific version context of each change.

## Reference index

| Reference | Topics |
| --- | --- |
| [Engine API](references/engine-api.md) | API compatibility, fields, events, mounts, Swarm, disk usage, cache pruning |
| [Go SDK and CLI](references/go-sdk-cli.md) | Modules, types, client calls, plugins, flag and output migrations |
| [Images and registries](references/images-registry.md) | Containerd store, registry compatibility, manifests, archives, platforms |
| [Networking](references/networking.md) | IPAM, attachments, DNS, IPv6, bridges, firewalls, rootless networking, overlays |
| [Runtime and daemon](references/runtime.md) | Removed settings, TLS, reloads, mounts, security, GPUs, Windows, packages |
| [Buildx](references/buildx.md) | Builders, Bake, Imagetools, source policies, exports, resource limits, debugger |
| [BuildKit and Dockerfile](references/buildkit-dockerfile.md) | Frontends, lint, provenance, LLB sources, signature checks, deployment |
| [Compose](references/compose.md) | Reconciliation, builds, hooks, configuration, Watch, publishing, Go SDK |

## Breaking changes and deprecations

### Daemon startup, transport, and registry compatibility

Remove `--oom-score-adjust`, `--api-cors-header`, and `api-cors-header`
from the applicable daemon startup arguments or configuration before upgrading.
Remove `fluentd-async-connect` from Fluentd log options. Containers using
`logentries` need a different logging driver, and Debian Upstart deployments
need a supported service manager. External graph-driver plugins are no longer loaded.

Engine v27.0 and later reject explicit `--tls=false` or `--tlsverify=false`
with a remote TCP listener, including equivalent daemon configuration.
Configure TLS verification for remote TCP; `tcp://localhost` is excepted
from the mandatory verification requirement. Use an unencrypted private key
for daemon TLS because password-encrypted legacy PEM keys are unsupported.

Engine v28.2 removes Docker Image v1 and manifest v2 schema 1 support and
the retry by tag after a failed pull by resolved digest. Publish OCI or
manifest v2 schema 2 images on registries that support digest pulls.

Engine 29.10.0 defaults loopback ranges to insecure only when
`insecure-registries` is omitted. When configuring it, explicitly list each
local registry needing HTTP or an untrusted TLS certificate.
`{"insecure-registries":[]}` disables all default insecure registries.

### Engine API and SDK migrations

Engine 29.0 raised the daemon minimum API to v1.44; Engine 29.3.0 lowers it
to v1.40, restoring server-side compatibility with Docker 19.03 API clients.

Read per-network addresses in `NetworkSettings.Networks`: API v1.52 removes
legacy top-level address fields. Set MAC addresses in per-network endpoint
settings because v1.52 removes container-wide `Config.MacAddress` on creation.

Treat omitted inspection fields as empty where specified in the API reference.
API v1.44 removes `VirtualSize` from image list and inspection responses;
v1.45 drops image-inspect `Container` and `ContainerConfig`; v1.50 removes
the deprecated container-only image `Config` fields.

For event payloads at API v1.52 or later, read `Action` and `Actor` in place
of removed `status`, `id`, and `from`. For streaming JSON progress, read
`errorDetail` and `progressDetail`; legacy `error` and `progress` are deprecated
and may be empty or omitted in a future API version.

Use the public `github.com/moby/moby/client` and `github.com/moby/moby/api`
modules for Engine integrations. The old `github.com/docker/docker` module
is deprecated. The v29 client uses option and result structs for the calls
listed in the SDK reference; rename `ContainerExec…` calls to `Exec…`.
The 29.8.0 SDK requires Go 1.26 or later.

### CLI and Compose migration points

Use `docker stop --timeout 30 app`, or `--timeout` with `docker restart`;
`--time` remains a hidden alias. CLI v29.0 rejects `bind-nonrecursive`;
use `bind-recursive=disabled` to exclude bind-mount submounts.
Use `docker commit --no-pause app app:snapshot` instead of `--pause=false`;
`--pause` is deprecated and scheduled for removal in v30.0.

Engine v29 disables link-generated environment variables by default.
`DOCKER_KEEP_DEPRECATED_LEGACY_LINKS_ENV_VARS=1` temporarily restores them.
Both those variables and default-bridge `--link` are targeted for removal
in v30.0. Engine v29.0 deprecates cgroup v1; at least one maintained branch
will support it through May 2029. Check `Cgroup Version` in `docker info`.

Compose 5.0.0 delegates all image builds to Bake after removing its internal
BuildKit builder. Existing workloads can behave differently with the new
reconciliation algorithm in Compose 5.2.0. The first `docker compose up`
after upgrading to Compose 5.5.0 may recreate existing containers while
Compose re-evaluates their image digests.

`docker buildx install` and `docker buildx uninstall` are deprecated.
Invoke Buildx directly, such as `docker buildx build`, in scripts that
relied on the `docker builder` aliases.

## Networking and firewall quick reference

Repeat `--network` for multiple attachments on container creation.
Use attachment options for MAC addresses, link-local addresses, and
`com.docker.network.endpoint.sysctls`; use `IFNAME` for the assigned interface name.
On custom networks, Engine 28.0.0 rejects per-interface settings such as
`--sysctl net.ipv4.conf.eth0.log_martians=1`.

The endpoint with the highest gateway priority supplies the default gateway;
ties use lexicographic network name. Set `gw-priority` on creation,
`--gw-priority` on network connection, or `GwPriority` through the API.
Engine 29.0 requires explicit `--gateway` IPAM configuration to install a
default gateway on macvlan and IPvlan L2 attachments.

With IPv6 firewalling enabled, `routed` opens published container ports for
direct access over a route to the subnet and skips NAT and masquerading.
For a mapping applying only to `routed`, select the family with `0.0.0.0`
or `::` and omit the host port. Use `nat-unprotected` when a network
deliberately needs direct routed access to unpublished ports.

The nftables backend is experimental in Engine 29.0. Enable host IP forwarding
for bridges that need it and enforce forwarding policy in the host firewall.
`--ip-forward=false` skips the daemon check and can leave bridge port forwarding
unavailable. Swarm support with nftables starts in Engine 29.10.0 and is experimental.

Engine 29.9.1 rejects invalid `--link-local-ip` values. Use IPv4 addresses
from `169.254.0.0/16` or IPv6 addresses from `fe80::/10`.
The networking reference includes firewall downgrade commands, encrypted-overlay
upgrade constraints, DNS behavior, and rootless loopback settings.

## Image storage, archives, and mounts

Engine 29.0 defaults to the containerd image store on fresh installs, with
`userns-remap` daemons exempt because that release temporarily disables
the store with remapping. The store honors daemon-wide pull/push concurrency
limits in Engine 29.7.0; set both limits to `0` to keep transfers unlimited.

Engine 29.9.0 lazy pulls default to enabled for `nydus`, `overlaybd`, `soci`,
and `stargz`. Set `{"features":{"lazy-pull":false}}` in `daemon.json` to fetch
layer blobs needed for `docker save` or `docker push` even when unpacked layers exist.

CLI 29.0 accepts comma-separated platforms for image load and save:

```sh
docker image load --platform linux/amd64,linux/arm64 -i image.tar
```

API v1.52 instead repeats the `platform` query argument, with a JSON-encoded
OCI platform object in each value. Platform-specific push uses the containerd
image store; the API push `platform` parameter is experimental in Engine 27.0.1.

`type=image` mounts are generally available in Engine 29.7.0 and work with
experimental features disabled. Use `image-subpath` for a directory within an image.
CLI 29.3.0 adds `bind-create-src` to create a missing bind source on the daemon host.

On Linux 5.12 or newer with a supporting runtime, API v1.44 makes read-only
bind mounts recursively read-only. Use `BindOptions.ReadOnlyNonRecursive`
to retain submount access modes, or `BindOptions.ReadOnlyForceRecursive`
to require recursive read-only support.

## Build workflows

BuildKit 0.28.0 exports SLSA v1.0 provenance by default. Set the provenance
attestation's `version` attribute to select SLSA v0.2. Case-sensitive readers
must use `InvocationId` for new attestations and accept `InvocationID` for older ones.

Buildx source policies are experimental when introduced in 0.31.0.
Local contexts can automatically load `Dockerfile.rego` or `app.Dockerfile.rego`;
additional configuration uses `build --policy` or a Bake target's `policy` key.
The Buildx reference covers remote contexts, provenance inputs, Sigstore and
PGP verification, and opt-in verification through `BUILDX_DEFAULT_POLICY`.

Use `docker buildx bake --var VERSION=1.2.3` to override a declared variable.
Set `BUILDX_BAKE_FILE_RELATIVE_PATHS=true` to resolve paths from the Bake file's directory.
`docker buildx dap` is generally available from Buildx 0.33.0.

For local exports, `mode=delete` replaces destination contents and deletes
files absent from the result. 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` on `docker buildx build`, or a Bake target's `resource` key,
for CPU and memory limits. This requires BuildKit 0.31.0 or later and
Dockerfile frontend 1.25.0 or later.

## Compose operations and automation

Use `docker compose start --wait` to wait for existing services to be running
or healthy. Restart runs configured lifecycle hooks; `docker compose run`
executes `post_start` hooks in the one-off container. Service `pre_start`
hooks can run initialization containers with their own image before startup.

`docker compose config --variables` lists interpolation variables and defaults
without validating the model. Parse `docker compose ps --format json` as
JSON Lines, one object per container. Automatic progress checks stderr for
a terminal, so redirecting stdout alone can still leave interactive progress.

Compose Watch rebuilds the watched service and skips rebuilding its
`depends_on` services for that change. Watch skips unreadable directories;
its limited image cleanup can leave dangling images in the project.

## Daemon operation and security

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.
Configuration reloads are atomic: an error applies none of the reload's changes.

Engine 29.10.0 offers experimental one-shot and cron-scheduled jobs through
the opt-in extension `dockerd --enable-extension org.mobyproject.jobs.v0`.
It reads `/etc/docker/containerd.d/` when running embedded containerd.

Engine 29.10.1 bounds reads of user, group, and ID mapping files and preserves
read-only bind mount protection during `docker cp` into a running container.
The runtime reference preserves the other Engine and bundled-runtime security fixes.

Files in this skill

  • SKILL.md9.5 KB
  • coverage.json2.5 KB
  • references/buildkit-dockerfile.md2.9 KB
  • references/buildx.md9.6 KB
  • references/compose.md9.5 KB
  • references/engine-api.md9.3 KB
  • references/go-sdk-cli.md6.1 KB
  • references/images-registry.md5.7 KB
  • references/networking.md12 KB
  • references/runtime.md6.3 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in development →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.