microsoft / Docker-PowerShell

PowerShell Module for Docker
MIT License
289 stars 87 forks source link

Cannot restart a container #189

Open navguru opened 6 years ago

navguru commented 6 years ago

Windows 10 Receive error from CreateContainer that the container already exists. I have tried start and restart. Is there a setting I need to add to have it not create the container I just want to get started? -->

PS C:\Users\dmachanick\Documents\AL\ALProject1> docker start DEV2Server
Error response from daemon: container 26407108a9d5f04874df5353f85e33ccf65312fc8b7db197448f4e234ba7f003 encountered an error during CreateContainer: failure in a Windows system call: A Compute System with
the specified identifier already exists. (0xc037010f) extra info: {"SystemType":"Container","Name":"26407108a9d5f04874df5353f85e33ccf65312fc8b7db197448f4e234ba7f003","Owner":"docker","LayerFolderPath":"C:\\ProgramData\\Docker\\windowsfilter\\26407108a9d5f04874df5353f85e33ccf65312fc8b7db197448f4e234ba7f003","Layers":[{"ID":"a3488407-d1b5-5083-9ada-67fb7048f96f","Path":"C:\\ProgramData\\Docker\\windowsfilter\\b632248e9949c8d4ae8b09f408bc6972e0c53e2399b1da02cc6901a8a0e6c3fd"},{"ID":"be30f409-559b-5a91-9fab-d01890340b57","Path":"C:\\ProgramData\\Docker\\windowsfilter\\5958848fdd5bd56ca84c569cb39684dd58b721be5d60e94aaa58d0317f8ffd8f"},{"ID":"3fcf01c3-cbd8-5154-956a-1c5e8b5e0e6a","Path":"C:\\ProgramData\\Docker\\windowsfilter\\d814c34bbeb918a4f3d95e9bd88c3d6fff3cbcd910f3e265c208132c0da76dea"},{"ID":"633e8d62-99d4-50ab-a83b-38d4b33ce46e","Path":"C:\\ProgramData\\Docker\\windowsfilter\\2c1d7b3ac49a1cc86d55492b5cbd26c846c6d342676a8df533b2dd3e7a7a2e41"},{"ID":"689fac3e-da02-5bad-98ac-77b38d598b68","Path":"C:\\ProgramData\\Docker\\windowsfilter\\e95826cbc6ffa238d665ab8b45b848facbf51e07800ed1e48f7870bc58bf8fcc"},{"ID":"16db4b8b-787e-5653-94f3-f269d32d7a5e","Path":"C:\\ProgramData\\Docker\\windowsfilter\\0b38f96b57310053876a49b8479f658625982fb9c2e184bde61e87dcbe7441a2"},{"ID":"89173308-b179-50cf-9cd2-72366cbb15da","Path":"C:\\ProgramData\\Docker\\windowsfilter\\e73a4dba6439fe6a8abd22b35b8f3c3a74eaa3adbade202f50064ea65af9f7ce"},{"ID":"227d4c1f-8b59-5fed-a78b-aad44897c67a","Path":"C:\\ProgramData\\Docker\\windowsfilter\\9a80d6cf39bcc6e6c2d3d1e8d130ba1cd35ab694947b68e9c273396712f2937f"},{"ID":"8ae1e8d6-424d-5f46-9566-574d82976bda","Path":"C:\\ProgramData\\Docker\\windowsfilter\\306bb1ee1a473a6153a92fbe994f86edf7fd7e24239521167104c82e4efcb49b"},{"ID":"f9c31d17-f513-5197-87d5-3c6d620165bb","Path":"C:\\ProgramData\\Docker\\windowsfilter\\6eed92c78b923c042dbdccf6a70d750d3e12b824431a0faf1a16e53a361037c4"},{"ID":"3dfa239f-b411-587a-8573-bb7ca559aca8","Path":"C:\\ProgramData\\Docker\\windowsfilter\\03991e7268ae23ab3595db7844171edc9e303cfe2009d9b1c86055299e8edfe7"},{"ID":"4d8d5c70-ae1b-5804-855d-99bf21a1d36a","Path":"C:\\ProgramData\\Docker\\windowsfilter\\f9be1c8d27e3a12a0b1a8ffbdd43e5549e802697fddd5f6e64c07959dafaf201"},{"ID":"de282d67-5fb6-5daa-aee0-2d565fa0cbc4","Path":"C:\\ProgramData\\Docker\\windowsfilter\\90d012778ca01b4f1807c383c1d6923945eaf6402020ced7c3b574af79f448ff"},{"ID":"2961e730-bd27-5093-afe2-3d6fbe0762fb","Path":"C:\\ProgramData\\Docker\\windowsfilter\\1cd8c7a00d7e787aa0777df927f26c73759c0d6b05717f0461e5dca2f3aa51d3"},{"ID":"8688eb6e-525e-5122-a8be-0f7e41b606c4","Path":"C:\\ProgramData\\Docker\\windowsfilter\\f3723f1c142f5292b6f765eca4ab2c30c7237e34a25487d637e66ad0b247ee2a"},{"ID":"d60ec781-6311-599b-9682-8adc3dccb23f","Path":"C:\\ProgramData\\Docker\\windowsfilter\\637466d258deb142f5e078c00a173ae9949d69ca018da62ec44a96c5efbf0d91"},{"ID":"c63f67a9-663c-5a99-840e-0cd83d3f950f","Path":"C:\\ProgramData\\Docker\\windowsfilter\\fb217bcc3253290c16ffe263c775f3a7a477784b57425ffc4e7b83e0e0c2f340"},{"ID":"f42a1eef-dc23-52b5-b31b-c43393eb2ff3","Path":"C:\\ProgramData\\Docker\\windowsfilter\\6349a65828d727b299c5958c107e238c06801108286ed16728371ee3a05c8bcf"}],"MemoryMaximumInMB":3072,"HostName":"DEV2Server","MappedDirectories":[{"HostPath":"c:\\demo","ContainerPath":"c:\\demo","ReadOnly":false,"BandwidthMaximum":0,"IOPSMaximum":0,"CreateInUtilityVM":false},{"HostPath":"c:\\windows\\system32\\drivers\\etc","ContainerPath":"c:\\driversetc","ReadOnly":false,"BandwidthMaximum":0,"IOPSMaximum":0,"CreateInUtilityVM":false},{"HostPath":"c:\\demo\\extensions\\dev2server\\program files","ContainerPath":"c:\\navpfiles","ReadOnly":false,"BandwidthMaximum":0,"IOPSMaximum":0,"CreateInUtilityVM":false},{"HostPath":"c:\\demo\\extensions\\dev2server\\my","ContainerPath":"c:\\run\\my","ReadOnly":false,"BandwidthMaximum":0,"IOPSMaximum":0,"CreateInUtilityVM":false}],"HvPartition":true,"EndpointList":["09e2ebb3-b963-4b31-9af2-853c72e356b3"],"HvRuntime":{"ImagePath":"C:\\ProgramData\\Docker\\windowsfilter\\fb217bcc3253290c16ffe263c775f3a7a477784b57425ffc4e7b83e0e0c2f340\\UtilityVM"},"AllowUnqualifiedDNSQuery":true}
Error: failed to start containers: DEV2Server```

**Output of `ipmo Docker; (module Docker).Version.ToString()` (from a powershell process):**

(paste your output here)



**Steps to reproduce the issue:**
1.
2.
3.

**What actually happened?:**

**What did you expect to happen?:**

**Additional information:**