docker
config_error
ai_generated
true
守护进程错误响应:此平台不支持 macvlan 网络
Error response from daemon: network macvlan is not supported on this platform
ID: docker/network-driver-not-supported-on-windows
90%修复率
87%置信度
1证据数
2023-09-12首次发现
版本兼容性
| 版本 | 状态 | 引入 | 弃用 | 备注 |
|---|---|---|---|---|
| Docker Desktop 4.25.0 | active | — | — | — |
| Docker Engine 24.0.5 | active | — | — | — |
根因分析
尝试使用在 Windows 或某些 Linux 内核配置上不可用的网络驱动程序(例如 macvlan、ipvlan)。
English
Attempting to use a network driver (e.g., macvlan, ipvlan) that is not available on Windows or certain Linux kernel configurations.
官方文档
https://docs.docker.com/network/drivers/macvlan/解决方案
-
改用桥接网络驱动程序:'docker network create --driver bridge mynet' 实现跨容器通信。
-
在 Linux 上,确保内核模块已加载:'sudo modprobe macvlan' 并使用 'lsmod | grep macvlan' 检查。
无效尝试
常见但无效的做法:
-
100% 失败
Installing additional Docker plugins does not enable macvlan on Windows; the driver is Linux-only.
-
90% 失败
Switching to Docker Desktop WSL 2 backend on Windows may still not support macvlan due to Hyper-V limitations.