-
Notifications
You must be signed in to change notification settings - Fork 289
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Exception on startup - Unable to create: Sequence contains more than one element #81
Comments
I duplicated this but closed my issue I can confirm I also see this behaviour Just out of interest I removed the vhdx and it was recreated but again the log message said it already existed and bombed out. So even with no existing image this error occurs after creation of the new vhdx. |
Further investigation proved fruitful. I went to the docker resources directory and ran .\MobyLinux.ps1 -Destroy I then opened up hyper-v manager went to my virtual switch and set it to internal I was able to run hello-world-nginx. I went back to look at my virtual switches and upon switching DockerNAT back to private a new switch is created as internal, I removed this and set my original back to internal and it was reused. The root issue seems to be DockerNAT had been set to private and Docker doesn't like that. I hope this helps. |
@nickalbrecht Can you confirm that a "Reset to factory defaults" fixes the issue? @krystan Please don't mess with the virtual switch!! ;-) |
Hi @nickalbrecht Did you manage to fix your issue? |
I am having this exact same issue. I had done a windows update just today. It messed up my volume I had that was on a separate user account on my local machine. I decided to reset to factory defaults, thats when I started getting this exact issue. |
@dgageot yeah I understand that but I hadn't touched the switch something had set it to private and that is what caused this issue for me. Also resetting to factory defaults failed to work as it could not delete the switch (come to think of it I can't clean it up either even with the requisite ps commands), but the moment I set it to internal docker worked again. |
Oops, sorry for not getting back to you. No, Reset to Defaults does not resolve the issue, as soon as the Reset tries to restart docker after what I assume was the reset steps, it comes up with a very similar error.
Crash/Diagnostic Id
|
Solved the problem by manually creating the VM. Got the parameters by looking at C:\Program Files\Docker\Docker\resources\MobyLinux.ps1, from line 199. |
@alvesman Thank you for trying to fix the issue this way. Unfortunately, it might cause even worse effects in the future. It would be really helpful if you could try this:
This should give us the actual line where the error occurs. |
@dgageot Thank you, this is the output I got: `PS C:\Program Files\Docker\Docker\resources> ./MobyLinux.ps1 -Destroy
PS C:\Program Files\Docker\Docker\resources>` |
Thanks @alvesman, That's really helpful. Could you add those lines to the script, just before line 210?
|
@dgageot `PS C:\Program Files\Docker\Docker\resources> ./MobyLinux.ps1 -Destroy ComputerName : ZX10 [Microsoft.Vhd.PowerShell.VirtualHardDisk]
PS C:\Program Files\Docker\Docker\resources> ` |
Thanks @alvesman, that's still a mystery to me. The only difference I see is that you changed the path to HyperV virtual disks... |
@alvesman Maybe you could try to hard-code |
@dgageot Changed Hyper-V defs to point to C drive but got same result (previous version was working fine with disk on E drive): ComputerName : ZX10 [Microsoft.Vhd.PowerShell.VirtualHardDisk]
PS C:\Program Files\Docker\Docker\resources>` |
@alvesman I'm really puzzled... I guess it's either the |
@dgageot The offending parameter is SwitchName in: |
\0/ @alvesman Can you please print the output of |
PS C:\Program Files\Docker\Docker\resources> ./MobyLinux.ps1 -Destroy** PS C:\Program Files\Docker\Docker\resources> Get-VMSwitch
looks like there is a DockerNAT lingering from previous version... |
@dgageot |
@alvesman Can you run |
So to sum up, at least two users had the |
@dgageot your last post summarizes the problem. Thank you. All is running now.
|
@alvesman can you check if any of your VMS is using that switch? The Windows Phone emulator maybe? |
|
No, only MobyLinuxVM
with docker running: |
Thank you very much @alvesman! Thanks to your help, next version should contain both better diagnostic tools and a workaround to this issue. |
@alvesman @nickalbrecht @krystan Can you confirm that this is fixed in latest Beta? (>=Beta28) |
Closing this issue due to inactivity. Please re-open if the this is not fixed in recent Betas (>=Beta28) |
I can't confirm if it's resolved or not unfortunately. I no longer have an environment where the problem still exists. Time will tell. |
Closed issues are locked after 30 days of inactivity. 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. |
This has been an issue in the last three builds or so, I figured the next build each time would fix it. I haven't been using docker much, so nothing's loaded in it. But I wanted to report the problem to help get it resolved for the next person
Expected behavior
Docker to finish startup and reside in the system tray with indications that it's running normally
Actual behavior
The docker tray icon turns red indicating an error, and a feedback windows pops up with the following message
Information
DiagnosticID: 74DDB6C4-9FE4-4897-8642-1560202DDD37/2016-09-14_10-28-38
Relevant entries in the log file, omitting first and training lines:
Currently running on Windows 10 64-bit with Docker 1.12.1-beta26 Build 7018
Steps to reproduce the behavior
Simply starting docker results in this behavior, regardless if it's manually started or autostarted with windows startup.
The text was updated successfully, but these errors were encountered: