none
On Windows, “docker network create” got an error “hnsCall failed in Win32: The system cannot find the file specified” RRS feed

  • Question

  • I can't create nat or transparent network on my Windows box.

    R:\>docker network create --driver nat mynetwork

    Error response from daemon: hnsCall failed in Win32: The system cannot find the file specified. (0x2) R:\>docker network create --driver transparent mynetwork

    Error response from daemon: hnsCall failed in Win32: The system cannot find the file specified. (0x2) R:\>docker network create --driver overlay mynetworkj94zzk3ya9w2c3xjyqog103lw


    My docker version is latest:

    R:>docker version Client: Docker Engine - Community Version: 18.09.2 API version: 1.39 Go version: go1.10.8 Git commit: 6247962 Built: Sun Feb 10 04:12:31 2019 OS/Arch: windows/amd64 Experimental: false Server: Docker Engine - Community Engine: Version: 18.09.2 API version: 1.39 (minimum version 1.24) Go version: go1.10.6 Git commit: 6247962 Built: Sun Feb 10 04:28:48 2019 OS/Arch: windows/amd64 Experimental: false

    And default/pre-installed Windows networks:

    R:\>docker network ls
    NETWORK ID          NAME                DRIVER              SCOPE
    rgjwxekme8x2        ingress             overlay             swarm
    9b108628ed01        nat                 nat                 local
    56f89ce0ac41        none                null                local

    I tried diff things like: 

    a. bouncing "Host Network Service"

    b. reboots 

    c. different options from https://docs.microsoft.com/en-us/virtualization/windowscontainers/container-networking/advanced

    I also did this experiment. On the same box, if I switch to Linux containers, I'd have no problem creating networks.

    R:\>docker network create --driver bridge test1
    044459b2a9f0e92b29a9ce5f8c9066a31a710086a310020249ad39e24618b85a
    
    R:\>docker network create --driver host test2
    Error response from daemon: only one instance of "host" network is allowed
    
    R:\>docker network create --driver overlay test3
    gsjyz7ywwaxynj78n2r1zipee
    

    Dockers for Windows seems broken.

    Reference: https://docs.microsoft.com/en-us/virtualization/windowscontainers/container-networking/network-drivers-topologies

    Nothing seems helping...

    Any suggestion?




    • Edited by devvvy Wednesday, July 24, 2019 5:42 PM
    Tuesday, July 23, 2019 7:20 PM