更新时间:2022-11-26 10:44:17
您将需要使用macvlan或ipvlan驱动程序创建一个docker网络。
然后,您将需要使用DHCP IPAM驱动程序(IPAM代表IP地址管理)。
You will need to create a docker network with the macvlan or ipvlan driver. Then you will need to use the DHCP IPAM driver (IPAM stands for IP Address Management).
以下是要点,其中包含有关如何操作的一些解释类似:
https://gist.github.com/nerdalert/3d2b891d41e0fa8d688c
Here is a gist with some explanations of how to do something similar: https://gist.github.com/nerdalert/3d2b891d41e0fa8d688c