This is a community forum, where community users help other community users. If you want developers to see this, then I recommend opening an issue in docker’s upstream git repository https://github.com/moby/moby/issues
This one is spot on:
The missing --mac-address argument in the implementation and docs looks like a bug to me, since it is available as an option when creating the container:
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)
I am surprised 2. didn’t work. I am pretty sure I used external macvlan and a compose file for my tests: How to assign MAC address to specific network when using multiple networks - #26 by damianiw.