简体   繁体   English

docker network macvlan 驱动程序不支持 driver_opts:MTU

[英]docker network macvlan driver not honoring driver_opts: MTU

According to https://docs.docker.com/v17.09/engine/userguide/networking/work-with-networks/#connect-containers根据https://docs.docker.com/v17.09/engine/userguide/networking/work-with-networks/#connect-containers

driver_opts are: driver_opts 是:

com.docker.network.bridge.name  -   bridge name to be used when creating the Linux bridge
com.docker.network.bridge.enable_ip_masquerade  --ip-masq   Enable IP masquerading
com.docker.network.bridge.enable_icc    --icc   Enable or disable inter container connectivity
com.docker.network.bridge.host_binding_ipv4 --ip    Default IP when binding container ports
com.docker.network.driver.mtu   --mtu   Set the containers network MTU

I've changed the MTU of bridge driver by creating a network with a value to --mtu which works.我通过创建一个值为 --mtu 的网络更改了网桥驱动程序的 MTU,它可以工作。

But the same option, --mtu, does not work if I change the driver to macvlan但是,如果我将驱动程序更改为 macvlan,相同的选项 --mtu 将不起作用

Are the driver_opts different for macvlan? macvlan 的 driver_opts 是否不同? If so, what is its options to change MTU for macvlan driver for docker network create ?如果是这样,为 docker docker network create更改 macvlan 驱动程序的 MTU 的选项是什么?

这是由于 libnetwork 中的一个长期存在的错误: https ://github.com/moby/libnetwork/issues/2274

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM