Giter Club home page Giter Club logo

Comments (10)

dgageot avatar dgageot commented on July 23, 2024

Here's the full error message for reference:

[02:40:31.407][PowerShell     ][Info   ] Run script with parameters: -Create True -SwitchSubnetAddress 10.0.75.0 -SwitchSubnetMaskSize 24 -CPUs 2 -Memory 2048 -IsoFile C:\Program Files\Docker\Docker\Resources\mobylinux.iso...
[02:40:31.487][HyperV         ][Info   ] Using existing Switch: DockerNAT
[02:40:31.620][NamedPipeServer][Error  ] Unable to execute Start: Failed to create Switch "DockerNAT": Inconsistent parameters PolicyStore PersistentStore and Dhcp Enabled
    bei System.Management.Automation.Runspaces.AsyncResult.EndInvoke()
   bei System.Management.Automation.PowerShell.EndInvoke(IAsyncResult asyncResult)
   bei Docker.Core.PowerShell.Run(String script, Dictionary`2 parameters, Action`1 lineReceived)
   bei Docker.Backend.Backend.Start(Settings settings)
   bei Docker.Core.Pipe.NamedPipeServer.<>c__DisplayClass7_0.<Register>b__0(Object[] parameters)
   bei Docker.Core.Pipe.NamedPipeServer.RunAction(String action, Object[] parameters)

This happens on:

[02:40:30.256][Program        ][Info   ] OS: Windows 10 Pro Insider Preview
[02:40:30.259][Program        ][Info   ] Edition: Professional
[02:40:30.261][Program        ][Info   ] Id: 1607
[02:40:30.263][Program        ][Info   ] Build: 14372
[02:40:30.264][Program        ][Info   ] BuildLabName: 14372.0.amd64fre.rs1_release.160620-2342
[02:40:30.266][Program        ][Info   ] Sha1: 5b59d37edb4477448b300c4dd1952952b0e86d09

from for-win.

dgageot avatar dgageot commented on July 23, 2024

I'm pretty sure this happens when we call:

$netIP = $networkAdapter | New-NetIPAddress -AddressFamily IPv4 -IPAddress $switchAddress -PrefixLength ($SwitchSubnetMaskSize) -ea Stop

from for-win.

CharlesSong avatar CharlesSong commented on July 23, 2024

Failed to create Switch "DockerNAT": Inconsistent parameters PolicyStore PersistentStore and Dhcp Enabled

在 Docker.Core.Pipe.NamedPipeClient.TrySend(String action, Object[] parameters)
在 Docker.Core.Pipe.NamedPipeClient.Send(String action, Object[] parameters)
在 Docker.Core.Backend.BackendClient.Start(Settings settings)
在 Docker.Actions.<>c__DisplayClass26_0.b__0()
在 Docker.Core.TaskQueue.<.ctor>b__16_0()

from for-win.

dgageot avatar dgageot commented on July 23, 2024

@kwinz @CharlesSong I couldn't reproduce this issue. Can you run this command in an elevated powershell:

Get-NetAdapter "vEthernet (DockerNAT)" | Get-NetIPInterface

from for-win.

dgageot avatar dgageot commented on July 23, 2024

@kwinz @CharlesSong Hi, any chance you had time to run the command?

from for-win.

cbrevik avatar cbrevik commented on July 23, 2024

@dgageot I'm getting the same thing, just ran the command:

> Get-NetAdapter "vEthernet (DockerNAT)" | Get-NetIPInterface

ifIndex InterfaceAlias                  AddressFamily NlMtu(Bytes) InterfaceMetric Dhcp     ConnectionState PolicyStore
------- --------------                  ------------- ------------ --------------- ----     --------------- -----------
32      vEthernet (DockerNAT)           IPv6                                                                Persiste...
32      vEthernet (DockerNAT)           IPv6                  1500               5 Enabled  Connected       ActiveStore
32      vEthernet (DockerNAT)           IPv4                                                                Persiste...
32      vEthernet (DockerNAT)           IPv4                  1500               5 Enabled  Connected       ActiveStore
18      vEthernet (DockerNAT)           IPv6                                                                Persiste...
18      vEthernet (DockerNAT)           IPv6                  1500               5 Enabled  Disconnected    ActiveStore
18      vEthernet (DockerNAT)           IPv4                                                                Persiste...
18      vEthernet (DockerNAT)           IPv4                  1500               5 Enabled  Disconnected    ActiveStore

from for-win.

dgageot avatar dgageot commented on July 23, 2024

Thanks a lot @cbrevik for the feedback!

Can you run this command in an elevated Powershell before you restart Docker and see if it fixes the issue?

$vmNetAdapter = Get-VMNetworkAdapter -ManagementOS -SwitchName DockerNAT
Get-NetAdapter "vEthernet (DockerNAT)" | ? { $_.DeviceID -ne $vmNetAdapter.DeviceID } | Disable-NetAdapter -Confirm:$false -PassThru | Rename-NetAdapter -NewName "Broken Docker Adapter"

from for-win.

cbrevik avatar cbrevik commented on July 23, 2024

Thanks @dgageot, that seemed to solve it for me!

In my case, it might be that this problem corresponded with installing Xamarin, and using the Visual Studio Emulator for Android. The emulator uses Hyper-V as well, and started messing around with the virtual switches on my first run.

from for-win.

dgageot avatar dgageot commented on July 23, 2024

Closing. This was added to master branch and is planned to be released both on stable and beta channels.

from for-win.

docker-robott avatar docker-robott commented on July 23, 2024

Closed issues are locked after 30 days of inactivity.
This helps our team focus on active issues.

If you have found a problem that seems similar to this, please open a new issue.

Send feedback to Docker Community Slack channels #docker-for-mac or #docker-for-windows.
/lifecycle locked

from for-win.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.