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

Unable to create: The running command stopped because the preference variable "ErrorActionPreference" or common parameter is set to Stop: The object already exists.

Open hikal opened this issue 10 years ago • 9 comments

Expected behavior

Actual behavior

Information

Id: A87B93B9-688A-49DD-9A22-EEE229B7DA52/2016-11-23_09-53-12

Unable to create: The running command stopped because the preference variable "ErrorActionPreference" or common parameter is set to Stop: The object already exists. at Docker.Backend.HyperV.RunScript(String action, Dictionary`2 parameters) at Docker.Backend.ContainerEngine.Linux.Start(Settings settings) at Docker.Core.Pipe.NamedPipeServer.<>c__DisplayClass8_0.b__0(Object[] parameters) at Docker.Core.Pipe.NamedPipeServer.RunAction(String action, Object[] parameters)

Steps to reproduce the behavior

  1. Set up docker for win
  2. Run docker cause a error

hikal avatar Nov 23 '16 03:11 hikal

What is the resolution for this issue?

abhinav-h-saxena avatar Jan 04 '17 06:01 abhinav-h-saxena

Closing this issue was inappropriate, particularly without comment. It's a real issue.

Unable to create: The running command stopped because the preference variable "ErrorActionPreference" or common parameter is set to Stop: The object already exists.

at Docker.Backend.ContainerEngine.Linux.DoStart(Settings settings) at Docker.Backend.ContainerEngine.Linux.Restart(Settings settings) at Docker.Core.Pipe.NamedPipeServer.<>c__DisplayClass8_0.b__0(Object[] parameters) at Docker.Core.Pipe.NamedPipeServer.RunAction(String action, Object[] parameters)

kristopher-d avatar Jan 23 '17 18:01 kristopher-d

@abhinav-h-saxena @kristopher-d can you check whether you're hitting this issue: https://github.com/docker/for-win/issues/402

If so, please run diagnostics and post the diagnostic ids there - if not, please open separate issue.

friism avatar Jan 23 '17 21:01 friism

Have the same issue ID - 52540761-A3D5-4CB1-A7EE-12326EB7A457/2017-01-29_15-05-40 Any resolution on this?

yossi-neeman avatar Jan 29 '17 13:01 yossi-neeman

Check out Event Viewer. I had a situation where I was running low on c: disk space and no hyper-v virtual guest would start - docker reported the message in the title. Also try starting MobyLinuxVM manually in hyper-v to see if it starts at all.

MihaMarkic avatar Sep 15 '17 07:09 MihaMarkic

I had a similar issue. If the VM is unavailable (e.g. due to removable drive not present, drive not mounted) you may get this. Might make a good feature request: check for presence of drive hosting VM and present friendlier message.

JLospinoso avatar Sep 15 '17 12:09 JLospinoso

Or just simply put in a message "Check out your virtual guest in Hyper-V"

MihaMarkic avatar Sep 16 '17 13:09 MihaMarkic

I ran into this same issue and it turned out to be orphaned virtual adapters. I went to device manager and deleted the Docker-created Hyper-V virtual adapters and reran setup and it worked fine.

As described here: https://stackoverflow.com/questions/42500353/docker-on-windows-10-cant-startup-after-deleting-mobylinuxvm-in-hyper-v-manuall

My take is that the "object already exists" error is referring to the virtual network adapter.

bjimdar avatar Sep 25 '17 20:09 bjimdar

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

docker-robott avatar Jun 19 '20 03:06 docker-robott