Skip to content

Feature Request: driver_opt parameter of Networks.connect in Containers.create #2896

@Skazza94

Description

@Skazza94

Currently,
the Networks.connect method takes the driver_opt parameter in order to pass to the driver some custom values: https://docker-py.readthedocs.io/en/stable/networks.html#docker.models.networks.Network.connect.
I have a custom Network Plugin which uses such parameters to generate the MAC Address.

However, it is not possible to specify any custom value while attaching the first Docker network using Containers.create or Containers.run.

Is it possible to expose this parameter in such methods?

Thanks.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions