docker config_error ai_generated partial

Error response from daemon: network driver not supported by this platform

ID: docker/network-driver-not-supported

Also available as: JSON · Markdown · 中文
75%Fix Rate
84%Confidence
1Evidence
2024-04-12First Seen

Version Compatibility

VersionStatusIntroducedDeprecatedNotes
Docker 24.0.7 active
Docker 25.0.2 active
Windows Server 2022 active
Linux Kernel 5.15 active

Root Cause

The specified Docker network driver (e.g., macvlan, ipvlan, overlay) is not available or supported on the current host OS or kernel configuration.

generic

中文

指定的 Docker 网络驱动(例如 macvlan、ipvlan、overlay)在当前主机操作系统或内核配置上不可用或不支持。

Official Documentation

https://docs.docker.com/network/drivers/

Workarounds

  1. 85% success Load necessary kernel modules: sudo modprobe macvlan && sudo modprobe ipvlan, then retry.
    Load necessary kernel modules: sudo modprobe macvlan && sudo modprobe ipvlan, then retry.
  2. 80% success If using overlay network, ensure Docker swarm mode is initialized: docker swarm init
    If using overlay network, ensure Docker swarm mode is initialized: docker swarm init
  3. 70% success On Windows, use a supported network driver like 'nat' or 'transparent' instead: docker network create -d transparent mynet
    On Windows, use a supported network driver like 'nat' or 'transparent' instead: docker network create -d transparent mynet

中文步骤

  1. Load necessary kernel modules: sudo modprobe macvlan && sudo modprobe ipvlan, then retry.
  2. If using overlay network, ensure Docker swarm mode is initialized: docker swarm init
  3. On Windows, use a supported network driver like 'nat' or 'transparent' instead: docker network create -d transparent mynet

Dead Ends

Common approaches that don't work:

  1. sudo apt-get install --reinstall docker-ce 80% fail

    Reinstalling Docker does not add missing kernel modules or features.

  2. docker network create -d bridge mynet 70% fail

    Using 'docker network create -d bridge' creates a bridge, but does not enable macvlan or overlay.

  3. echo 1 > /proc/sys/net/ipv4/ip_forward 60% fail

    Setting kernel parameters without loading modules does not enable the driver.