The Container is assigned a separate ipv4 address by macvlan. By using the docker network connect bridge containerid manually, the container service will lose UDP support and the rate will become bad.
i first use Proxmox6 create kvm vps,then actual operation
docker network create -d macvlan \ --subnet=126.96.36.199/24 \ --gateway=188.8.131.52 \ -o parent=ens18 macvlan_bridge
docker run -d --log-driver=none --network=macvlan --ip=184.108.40.206 --restart=always
docker network connect bridge container id
The assigned inner network addresses are now available, but the outer network service gets worse, losing UDP, and network performance becomes sluggish
Is this a bug? When I access both the macvlan and the bridge network, there will be problems