Docker Desktop K8s with WSL 2 back-end on windows 10, hung indefinitely trying to start

Spread the love
  •  
  •  
  •  
  •  
  •  
  •  
  •  
  •  
  •  
  •  

Question to the sub here, have any of you ran the docker desktop version of K8s on your windows 10 WSL 2 sub-system? I am hoping to elicit some help. I’ve been tinkering with this for the past 48 hours, attempting to try something other than minikube. I have version 2.3.0.4 (46911) running for docker desktop, with K8s 1.16.5 being the listed supported version. When I go into the setting dashboard to enable K8s, it does its typical restart of docker, which goes fairly quick, and then attempts to start K8s where is just hangs. I let it go for two hours last night to ensure it wasn’t just my impatience with no success. From there I got onto some other sites that suggested removing files and restarting, and setting the env variable NO_PROXY kubernetes.docker.internal, which I tried. Still no success. When I look at the logs in ProgramData/DockerDesktop, I see the following : (I haven’t been to identify what the second process is) ​ [17:40:28.623][LoggingMessageHandler][Info ] [8ec35d5e] <Server start> POST http://localhost/versionpack/enable [17:40:28.820][LoggingMessageHandler][Info ] [8ec35d5e] <Server end> POST http://localhost/versionpack/enable -> 204 NoContent (took 198ms) [17:40:29.295][LoggingMessageHandler][Info ] [0a117195] <Server start> POST http://localhost/dns/refresh-hosts [17:40:29.915][HttpServerExceptionSerializer][Error ] Unhandled exception: The process cannot access the file ‘C:WINDOWSSystem32driversetchosts’ because it is being used by another process. at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath) at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost) at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost) at System.IO.StreamWriter.CreateFile(String path, Boolean append, Boolean checkHost) at System.IO.StreamWriter..ctor(String path, Boolean append, Encoding encoding, Int32 bufferSize, Boolean checkHost) at System.IO.StreamWriter..ctor(String path, Boolean append, Encoding encoding) at System.IO.File.WriteAllLines(String path, String[] contents, Encoding encoding) at Docker.Backend.DnsUpdater.PatchSystemHosts(String mainIpAddress) in C:workspacesstable-2.3.xsrcgithub.comdockerpinatawinsrcDocker.BackendDNSDnsUpdater.cs:line 188 at lambda_method(Closure , Object , Object[] ) at System.Web.Http.Controllers.ReflectedHttpActionDescriptor.ActionExecutor.<>c__DisplayClass6_1.<GetExecutor>b__0(Object instance, Object[] methodParameters) at System.Web.Http.Controllers.ReflectedHttpActionDescriptor.ExecuteAsync(HttpControllerContext controllerContext, IDictionary`2 arguments, CancellationToken cancellationToken) — End of stack trace from previous location where exception was thrown — at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at System.Web.Http.Controllers.ApiControllerActionInvoker.<InvokeActionAsyncCore>d__1.MoveNext() — End of stack trace from previous location where exception was thrown — at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at System.Web.Http.Controllers.ActionFilterResult.<ExecuteAsync>d__5.MoveNext() — End of stack trace from previous location where exception was thrown — at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at System.Web.Http.Dispatcher.HttpControllerDispatcher.<SendAsync>d__15.MoveNext() submitted by /u/NerdEngineering [link] [comments]

X ITM Cloud News

Patricia

Leave a Reply

Next Post

kubectl delete pv --all -n my-namespace

Thu Jul 30 , 2020
Spread the love          Forgot the “c” in “pvc”. Would anyone like to guess what happened next? 🙂 Fortunately this was a pre-prod cluster and were able to redeploy everything quickly thanks to GitOps… submitted by /u/davispw [link] [comments] X ITM Cloud News
X- ITM

Cloud Computing – Consultancy – Development – Hosting – APIs – Legacy Systems

X-ITM Technology helps our customers across the entire enterprise technology stack with differentiated industry solutions. We modernize IT, optimize data architectures, and make everything secure, scalable and orchestrated across public, private and hybrid clouds.

This image has an empty alt attribute; its file name is x-itmdc.jpg

The enterprise technology stack includes ITO; Cloud and Security Services; Applications and Industry IP; Data, Analytics and Engineering Services; and Advisory.

Watch an animation of  X-ITM‘s Enterprise Technology Stack

We combine years of experience running mission-critical systems with the latest digital innovations to deliver better business outcomes and new levels of performance, competitiveness and experiences for our customers and their stakeholders.

X-ITM invests in three key drivers of growth: People, Customers and Operational Execution.

The company’s global scale, talent and innovation platforms serve 6,000 private and public-sector clients in 70 countries.

X-ITM’s extensive partner network helps drive collaboration and leverage technology independence. The company has established more than 200 industry-leading global Partner Network relationships, including 15 strategic partners: Amazon Web Services, AT&T, Dell Technologies, Google Cloud, HCL, HP, HPE, IBM, Micro Focus, Microsoft, Oracle, PwC, SAP, ServiceNow and VMware

.

X ITM