# 守护进程错误响应：此平台不支持 macvlan 网络

- **ID:** `docker/network-driver-not-supported-on-windows`
- **领域:** docker
- **类别:** config_error
- **验证级别:** ai_generated
- **修复率:** 90%

## 根因

尝试使用在 Windows 或某些 Linux 内核配置上不可用的网络驱动程序（例如 macvlan、ipvlan）。

## 版本兼容性

| 版本 | 状态 | 引入 | 弃用 |
|------|------|------|------|
| Docker Desktop 4.25.0 | active | — | — |
| Docker Engine 24.0.5 | active | — | — |

## 解决方案

1. ```
   改用桥接网络驱动程序：'docker network create --driver bridge mynet' 实现跨容器通信。
   ```
2. ```
   在 Linux 上，确保内核模块已加载：'sudo modprobe macvlan' 并使用 'lsmod | grep macvlan' 检查。
   ```

## 无效尝试

- **** — Installing additional Docker plugins does not enable macvlan on Windows; the driver is Linux-only. (100% 失败率)
- **** — Switching to Docker Desktop WSL 2 backend on Windows may still not support macvlan due to Hyper-V limitations. (90% 失败率)
