Comments (10)
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.
I'm pretty sure this happens when we call:
$netIP = $networkAdapter | New-NetIPAddress -AddressFamily IPv4 -IPAddress $switchAddress -PrefixLength ($SwitchSubnetMaskSize) -ea Stop
from for-win.
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.
@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.
@kwinz @CharlesSong Hi, any chance you had time to run the command?
from for-win.
@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.
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.
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.
Closing. This was added to master branch and is planned to be released both on stable and beta channels.
from for-win.
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)
- Docker Desktop - WSL update failed even after updating wsl from comman line (windows) HOT 6
- win11 installing docke,white page appears HOT 2
- After the update, large-scale disk occupancy HOT 1
- Loading chunk 474 failed. (timeout: app://dd/474.bundle.js)
- My images and containers are gone HOT 2
- Unable to write a txt file using ECHO on command prompt of a nano 2022
- Docker Desktop distro installation failed after upgradation to docker desktop 4.32.0 HOT 12
- Host Networking doesn't fully support full 127.0.0.0/8 range
- After "docker compose up -d", docker can build and create a container but can't run
- Error when starting Docker Desktop: `Ensuring Docker CLI uses the Docker Desktop context`
- Docker Desktop update to 4.32.0: Running wsl distro proxy in Ubuntu-22.04 distro: exit status 1 HOT 25
- Error when starting Docker Desktop: Ensuring Docker CLI uses the Docker Desktop context HOT 1
- Cannot update Docker Desktop for Windows (WSL 2) HOT 2
- Containers-Images hosted in linux are not appearing in windows - Docker desktop
- An unexpected error occurred - "connect ENOENT \\.\pipe\errorReporter" HOT 8
- Docker Desktop - Hyper-V setup error HOT 1
- Switching from linux container to windows container
- Docker does not start HOT 1
- docker randomly fails to properly expose ports
- Error response from daemon: Ports are not available: exposing port TCP 127.0.0.1:5432 -> 0.0.0.0:0: listen tcp 127.0.0.1:5432: bind: An attempt was made to access a socket in a way forbidden by its access permissions.
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from for-win.