Skip to content

mac-address option available as docker run --network option, but missing as argument in docker network connect #51796

@meyayl

Description

@meyayl

Description

The docker run command allows setting the mac-address as option:

 docker run -d \
  --network=name=macvlan,ip=192.168.70.27,mac-address=02:42:0a:00:46:27 \
  <image>

(see: options table and examples underneath in the docs: https://docs.docker.com/reference/cli/docker/container/run/#network)

The docker network connect command should have the matching argument --mac-address (see docs), but it doesn't exist.

Expected behavior: feature parity, regardless whether the network configuration is created with the container, or connected afterward. Both should allow configuring the mac-address.

Current behavior: the docker network connect does not allow configuring the mac-address.

Please implement the missing --mac-address argument for docker network connect

Metadata

Metadata

Assignees

No one assigned

    Labels

    kind/featureFunctionality or other elements that the project doesn't currently have. Features are new and shinystatus/0-triage

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions