compose icon indicating copy to clipboard operation
compose copied to clipboard

docker-compose build on Windows fails with stacktrace if API version < 1.24

Open shin- opened this issue 9 years ago • 1 comments

See original comment: https://github.com/docker/compose/issues/4106#issuecomment-266105765

shin- avatar Jul 06 '17 21:07 shin-

Tried work arround by EdwinJunior

Met this issue. Get fixed with https://github.com/docker/for-win/issues/711 net stop hns; del c:\programdata\Microsoft\windows\NHS\HNS.data Remove-Netnat; net start hns; and restart docker for windows with administrator permission.

(not sure what running docker as administrator really means as the service is running as the local system?)

Now I get this error when starting docker

Docker daemon failed with message: Error starting daemon: Error initializing network controller: Error creating default network: HNS failed with error : {Object Exists} An attempt was made to create an object and the object name already existed.

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

Have done a reset to factory defaults and docker starts but back to the original issue!

Severity Code Description Project File Line Suppression State Error MSB4018 The "PrepareForLaunch" task failed unexpectedly. Microsoft.DotNet.Docker.CommandLineClientException: Creating network "dockercompose2647930274_default" with the default driver HNS failed with error : The parameter is incorrect. .

For more troubleshooting information, go to http://aka.ms/DockerToolsTroubleshooting ---> Microsoft.DotNet.Docker.CommandLineClientException: Creating network "dockercompose2647930274_default" with the default driver HNS failed with error : The parameter is incorrect. at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at Microsoft.DotNet.Docker.DockerComposeClient.d__18.MoveNext() --- End of inner exception stack trace --- at Microsoft.DotNet.Docker.DockerComposeClient.d__18.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at Microsoft.DotNet.Docker.DockerWorkspace.d__14.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at Microsoft.DotNet.Docker.BuildTasks.DockerBaseTask.Execute() at Microsoft.Build.BackEnd.TaskExecutionHost.Microsoft.Build.BackEnd.ITaskExecutionHost.Execute() at Microsoft.Build.BackEnd.TaskBuilder.d__26.MoveNext() docker-compose C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\MSBuild\Microsoft\VisualStudio\v15.0\Docker\Microsoft.VisualStudio.Docker.Compose.targets 192

David-Paterson avatar Jul 06 '17 22:07 David-Paterson