Skip to content

ContainerCreate fails with "bad parameter" when ExposedPorts is set #96

@840869522

Description

@840869522

When calling containerCreate() with ExposedPorts set using the generated model class ContainerConfigExposedPortsItem, Docker Engine returns a 400 Bad Request with the message bad parameter

[2025-06-26 09:38:45] local.ERROR: bad parameter {"exception":"[object] (Docker\API\Exception\ContainerCreateBadRequestException(code: 400): bad parameter at C:\Users\wizard\Desktop\proj\back\vendor\beluga-php\docker-php-api\src\Endpoint\ContainerCreate.php:96)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions