Skip to content

client.ContainerCreate: use container.CreateRequest instead of local type#48553

Merged
thaJeztah merged 1 commit intomoby:masterfrom
thaJeztah:container_create_switch_type
Sep 26, 2024
Merged

client.ContainerCreate: use container.CreateRequest instead of local type#48553
thaJeztah merged 1 commit intomoby:masterfrom
thaJeztah:container_create_switch_type

Conversation

@thaJeztah
Copy link
Copy Markdown
Member

This function used a locally defined configWrapper, which was identical to the container.CreateRequest, with the exception of CreateRequest defining omitempty for HostConfig and NetworkingConfig, but this should not impact our use as the same type is used to handle the request on the daemon side.

…type

This function used a locally defined `configWrapper`, which was identical
to the `container.CreateRequest`, with the exception of `CreateRequest`
defining `omitempty` for HostConfig and NetworkingConfig, but this should
not impact our use as the same type is used to handle the request on the
daemon side.

Signed-off-by: Sebastiaan van Stijn <[email protected]>
@thaJeztah thaJeztah added this to the 28.0.0 milestone Sep 26, 2024
@thaJeztah thaJeztah self-assigned this Sep 26, 2024
@thaJeztah thaJeztah merged commit b9cd744 into moby:master Sep 26, 2024
@thaJeztah thaJeztah deleted the container_create_switch_type branch September 26, 2024 15:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants