for-win icon indicating copy to clipboard operation
for-win copied to clipboard

Cannot create network in Windows container mode

Open KevM opened this issue 8 years ago • 44 comments

Please, check https://docs.docker.com/docker-for-win/troubleshoot/. Issues without logs and details cannot be debugged, and will be closed.

  • [ X] I have tried with the latest version of my channel (Stable or Edge)
  • [ X] I have submitted Diagnostics
  • [ X] I have included the Diagnostics ID in this Issue
  • Windows Version: 1709 (OS Build 16299.371)
  • Docker for Windows Version: 18.04.0-ce-win62 (build 3d479c0)

Expected behavior

Creating a network when in windows container mode should work without error. This works correctly when in Linus container mode.

Actual behavior

> docker network create foo

Error response from daemon: could not find plugin bridge in v1 plugin registry: plugin not found

Information

Diagnostic Id: D328A056-EE5B-4784-AE5E-D0CB52167DE4/2018-04-17_15-14-14

Steps to reproduce the behavior

  1. Switch to windows container mode.
  2. docker network create mynet

KevM avatar Apr 17 '18 20:04 KevM

@KevM Thanks for reporting! - I can repro on stable and edge so this has been reported as a bug

jasonbivins avatar Apr 18 '18 04:04 jasonbivins

I can confirm. Windows 2016 server in Hyper-V

> docker network create --driver bridge ce-net --subnet=192.168.111.0/24
Error response from daemon: plugin not found
> docker --version
Docker version 17.06.2-ee-8, build 4e8ed51
> [System.Environment]::OSVersion.Version
Major  Minor  Build  Revision
-----  -----  -----  --------
10     0      14393  0

@marten-gustafsson-blinfo-se Can you try again with a different driver? bridge drivers aren't mentioned in the docs: https://docs.microsoft.com/en-us/virtualization/windowscontainers/manage-containers/container-networking

jasonbivins avatar Apr 25 '18 15:04 jasonbivins

> docker network create --driver nat --subnet=192.168.111.0/24 ce-net
Error response from daemon: HNS failed with error : Unspecified error

> docker network create help
Error response from daemon: plugin not found

:-)

Windows Server 2016 Work-arounds

Although we continue to add new features and drive development, some of these features will not be back-ported to older platforms. Instead, the best plan of action is to "get on the train" for latest updates to Windows 10 and Windows Server.

Too bad. Docker on Windows Server 2016 works. Docker on Windows 10 is too buggy.

Although we continue to add new features and drive development, some of these features will not be back-ported to older platforms. Instead, the best plan of action is to "get on the train" for latest updates to Windows 10

I don't mind "getting on the train" do you have a link to a resource where these trains are discussed? So we can get on them? 🚋 📆

KevM avatar Apr 30 '18 13:04 KevM

Found the source of your quote. Maybe it will be helpful to someone.

https://docs.microsoft.com/en-us/virtualization/windowscontainers/manage-containers/container-networking#windows-server-2016-work-arounds

KevM avatar Apr 30 '18 13:04 KevM

  • Windows Version: 1803 (OS Build 17134.1)
  • Docker for Windows Version: 18.04.0-ce-win62 (build 3d479c0)

> docker network ls

NETWORK ID NAME DRIVER SCOPE cd23685dc007 nat nat local 32e395bbfdbe none null local ccc02ba9a9ed test_default nat local a4639042fcea 默认交换机 ics local

> docker network create my_net

Error response from daemon: could not find plugin bridge in v1 plugin registry: plugin not found

> docker plugin ls

Error response from daemon: plugins are not supported on this platform

zongmi avatar May 06 '18 11:05 zongmi

I can confirm this on Windows 10

PS C:\Users\splunker\Documents\Workspace\ml-app\test\ml_app\ml_spl\ml_spl_distributed> docker-compose up -d --build Creating network "ml_spl_distributed_mltk_distributed" with driver "bridge" ERROR: could not find plugin bridge in v1 plugin registry: plugin not found

PS C:\Users\splunker\Documents\Workspace\ml-app\test\ml_app\ml_spl\ml_spl_distributed> docker network ls NETWORK ID NAME DRIVER SCOPE 52093e16e6dc Default Switch ics local 6e225ed61db7 nat nat local a907dfd0b011 none null local

PS C:\Users\splunker\Documents\Workspace\ml-app\test\ml_app\ml_spl\ml_spl_distributed> docker network create my_net Error response from daemon: could not find plugin bridge in v1 plugin registry: plugin not found

PS C:\Users\splunker\Documents\Workspace\ml-app\test\ml_app\ml_spl\ml_spl_distributed> docker plugin ls Error response from daemon: plugins are not supported on this platform

PS C:\Users\splunker\Documents\Workspace\ml-app\test\ml_app\ml_spl\ml_spl_distributed> docker --version Docker version 18.03.1-ce, build 9ee9f40

PS C:\Users\splunker\Documents\Workspace\ml-app\test\ml_app\ml_spl\ml_spl_distributed> [System.Environment]::OSVersion.Version

Major - Minor - Build - Revision 10 - 0 - 16299 - 0

rbanhatti avatar Jun 28 '18 18:06 rbanhatti

Any idea when the bug will be addressed? We are in need of this functionality :)

rbanhatti avatar Jun 28 '18 18:06 rbanhatti

Any updates?

MilesHart avatar Jul 06 '18 21:07 MilesHart

I was able to create a network on windows 10 using docker version: Client: Version: 18.03.1-ce API version: 1.37 Go version: go1.9.5 Git commit: 9ee9f40 Built: Thu Apr 26 07:12:48 2018 OS/Arch: windows/amd64 Experimental: false Orchestrator: swarm

Server: Engine: Version: 18.03.1-ce API version: 1.37 (minimum version 1.24) Go version: go1.9.5 Git commit: 9ee9f40 Built: Thu Apr 26 07:21:42 2018 OS/Arch: windows/amd64 Experimental: false And the following steps: PS C:\Users\ron> docker network ls NETWORK ID NAME DRIVER SCOPE 3bc504fbefe1 Default Switch ics local 6a5f7a74139d nat nat local a913d528180a none null local PS C:\Users\ron> Get-VMSwitch

Name SwitchType NetAdapterInterfaceDescription


nat Internal Default Switch Internal

PS C:\Users\ron> docker network create -d nat dsocktnet 1c598dc7fca1a9b978997cc9fc457bc1c636e9964fe7315575c0ba393ab9954a PS C:\Users\ron> docker network ls NETWORK ID NAME DRIVER SCOPE 3bc504fbefe1 Default Switch ics local 1c598dc7fca1 dsocktnet nat local 6a5f7a74139d nat nat local a913d528180a none null local The challenge I am having is that I cannot seem to map and exposed port from the container to the host. I was able to create and start a container on the network using the following steps: PS C:\Users\ron> docker container create --network dsocktnet -p 80:80 --name socktestc 0cb57fdc655e 562eff96e3711eba652851286a1a5cd21b303fc8e822a9598ab19a17ae915ce0 PS C:\Users\ron> docker start socktestc Socktestc But when I change netstat on the host I do not see anything listening on port 80. Perhaps I need to us a different hyper-V driver? All The Best Ron. L.

ronaldclambert avatar Jul 10 '18 02:07 ronaldclambert

any updates???

andersson83 avatar Aug 01 '18 20:08 andersson83

I was able to fix this issue on my Windows 10 machine (Surface Book) by disabled "Hyper-V" feature and rebooting the machine. I had enabled Hyper-V earlier for mobile app development.

bharatrakhi avatar Aug 16 '18 05:08 bharatrakhi

When I include a specific driver parameter in the call, it seems to work:

docker network create -d ics mynetwork

However, without the "-d ics", I'm having the same error:

docker network create mynetwork

yolpsoftware avatar Aug 18 '18 21:08 yolpsoftware

PS C:\Users\thavoo\webapp\laradock> docker network ls
NETWORK ID          NAME                         DRIVER              SCOPE
be15c7f94933        Modificador predeterminado   ics                 local
b509cf61adbe        nat                          nat                 local
21ef9b5017df        none                         null                local
PS C:\Users\thavoo\webapp\laradock> docker network create my_net
Error response from daemon: could not find plugin bridge in v1 plugin registry: plugin not found
PS C:\Users\thavoo\webapp\laradock> docker plugin ls
Error response from daemon: plugins are not supported on this platform
PS C:\Users\thavoo\webapp\laradock> docker network create -d ics mynet
0720c3c729b08a9a3a617cc943ec6cd80e7b863eb5a68cc0eb2c6642e1b135b7
PS C:\Users\thavoo\webapp\laradock> docker-compose up -d nginx mysql phpmyadmin
Creating network "laradock_frontend" with driver "bridge"
ERROR: could not find plugin bridge in v1 plugin registry: plugin not found
PS C:\Users\thavoo\webapp\laradock> docker network ls
NETWORK ID          NAME                         DRIVER              SCOPE
be15c7f94933        Modificador predeterminado   ics                 local
0720c3c729b0        mynet                        ics                 local
b509cf61adbe        nat                          nat                 local
21ef9b5017df        none                         null                local
PS C:\Users\thavoo\webapp\laradock> docker version
Client:
 Version:           18.06.1-ce
 API version:       1.38
 Go version:        go1.10.3
 Git commit:        e68fc7a
 Built:             Tue Aug 21 17:21:34 2018
 OS/Arch:           windows/amd64
 Experimental:      false

Server:
 Engine:
  Version:          18.06.1-ce
  API version:      1.38 (minimum version 1.24)
  Go version:       go1.10.3
  Git commit:       e68fc7a
  Built:            Tue Aug 21 17:36:40 2018
  OS/Arch:          windows/amd64
  Experimental:     false

arcanoix avatar Oct 03 '18 18:10 arcanoix

I was able to fix this issue on my Windows 10 by the switch back to Linux containers.

ngocleek avatar Oct 07 '18 04:10 ngocleek

@ngocleek answered solved the issue. Why does docker default to win containers anyway? are there more people using that instead of linux containers?

samayo avatar Nov 09 '18 19:11 samayo

@samayo Yes we use windows containers with windows host server . Is there anyway to use this one windows containers

chetanc97 avatar Nov 09 '18 21:11 chetanc97