Skip to content

fix: container create body carries HostConfig and NetworkingConfig - #2

Merged
mokevnin merged 1 commit into
mainfrom
fix/container-create-body
Sep 27, 2026
Merged

mokevnin merged 1 commit into
mainfrom
fix/container-create-body

Conversation

@mokevnin

Copy link
Copy Markdown
Member

In the Engine API the /containers/create body is allOf: [ContainerConfig, {HostConfig, NetworkingConfig}]. The spec had only ContainerConfig, so host settings (binds, network, limits) had no type and went around it.

ContainerCreate now takes ContainerCreateRequest, which is ContainerConfig plus optional HostConfig and NetworkingConfig.

The SDK side is Hexlet/docker-ruby#23 (host_config: on containers.create).

🤖 Generated with Claude Code

The Engine API takes ContainerConfig together with HostConfig and
NetworkingConfig in one create body; the spec had only ContainerConfig, so
callers passed host settings around the types.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@mokevnin
mokevnin merged commit 3fc6dd5 into main Sep 27, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant