Build a patch for docker engine and docker cli to support static ip and static mac address in swarm mode

Job ID: 32107402

Budget: $30 – $250 USD

We need some one who are familiar with docker engine and docker cli open source project.
1) https://github.com/moby/moby
2) https://github.com/docker/cli

Help to build a patch for docker engine and docker cli v20.10.10 to support static ip and static mac address in swarm mode.

The basic use case using cli as below:
# docker network create --config-only --subnet 192.168.14.0/24 -o parent=eth0 --ip-range 192.168.14.152/30 mvl-config
# docker network create -d macvlan --scope swarm --attachable --config-from mvl-config mvl
# docker service create --replicas 2 --name mvl-net-example --network mvl --ips [192.168.14.153,192.168.14.154] --mac-addresses [92:d0:c6:0a:29:33,92:d0:c6:0a:29:34] alpine:latest ping 8.8.8.8

Some requirements:
1) the new flags --ips and --mac-addresses will take the same number of items as the --replicas
2) those ip and mac-address will be applied to the replicas in order, the replica in the first slot will take the first ip and first mac etc.
3) the replica instance can be move to a new worker node of the swarm cluster with the same ip and mac-address, when needed, for example the worker node goes down etc.
4) the patch will need to be able to be applied to version v20.10.10 of the docker project.
5) some basic documents for us to understand the patch and apply it.
Related categories: Golang Docker