Windows 10 Pro and Docker service -- is it possible to start the Docker service later? - docker

The problem I face is that the first time the Docker service on my Windows 10 pro computer is started at boot time, then I get all kinds of errors. Restarting the Docker service solves always the problem.
On my Windows 10 pro computer the Docker Service is started automatically. The problem is that the service starts a bit too early. I know about the Windows Fastboot but changing that I find to heavy to configure that to solve this problem.
Is there a way to configure the Docker service to start later in the Windows 10 boot sequence?
You think - make it a program that is started automatically. When I configure Docker NOT as a service, then I get all kinds of problems. The Docker system tray icon sometimes even gets the red color ...
The error messages are:
ERROR: for docker-compose_geosolschmea_1 Cannot start service
geosolschmea: driver failed programming external connectivity on
endpoint docker-compose_geosolschmea_1
(3c0302743b124c050334b9ca3fcd3c9b01a0bcfaa1d629d74f7311cb09a58833):
Error starting userland proxy: mkdir
/port/tcp:0.0.0.0:3306:tcp:172.18.0.2:3306: inpuStarting
docker-compose_jenkins_1 ... error
ERROR: for docker-compose_jenkins_1 Cannot start service jenkins:
driver failed programming external connectivity on endpoint
docker-compose_jenkins_1
(fa039afd6930afba9843b89295e1bbeab32102679964780f867df1cd13282fe0):
Error starting userland proxy: mkdir
/port/tcp:0.0.0.0:8888:tcp:172.18.0.3:8080: input/output error

Related

Why does self made(.NET) Worker Service as Windows Service give "Error 1067: The process terminated unexpectedly" while starting the serivce?

I created a worker service in .NET and I planned to deploy that service to windows machine so I created it as windows service.
When I started deploying the service (using sc.exe), everything went smoothly until I tried to start up the service and I got error: "Error 1067: The process terminated unexpectedly".
It did start up in my dev machine so the problem must be related with the target machine.
Answers from "googling" didn't help me much and were kind of disperse.
What might cause this error?
For me the solution was simple. My target machine was missing the directory that my service was trying to use. I added the proper directory and folder into my dev machine and the error was gone.

Docker Engine Fails to start on Windows Server 2019

Our application is docker based and requires Nat network to be created on the host machine in order to communicate since its a web service. It was working since last 4 months and suddenly stopped working. Checked and found that docker service is stopped. Manually tried restarting the service but it failed to start. Below is the error in the event log:
Error:
fatal: failed to start deamon: Error initializing network controller: Error creating default network: failed during hnsCallRawResponse: hnsCall failed in Win32: There are no more endpoints available from endpoint mapper. (0x6d9)
Tried the below steps:
Deleted the hns.data and restarted the hns service. Then restarted the docker engine service. The issue persists.
Tried running MOFCOMP. Same issue.
Tried removing docker and reinstalling it. Doesn't work.
Tried creating nat network manually. But getting the above mentioned error.
Can someone help here? what needs to be checked or what could be the reason for this issue?

DTLSv1_listen unable to accept second client in a docker container

I'm experiencing an issue with OpenSSL/DTLS server.
Environment: docker container based on CentOs7
OpenSSL version: OpenSSL-1.1.1d
A DTLS server (non-blocking) using DTLSv1_Listen having a UDP socket with SO_REUSEADDR is unable to accept a second
client connection when it has already been accepted a client connection and serving it.
When the first client has finished, the second client connection is accepted.
I have used the dtls_udp_echo.c (taken from http://web.archive.org/web/20150617012520/http://sctp.fh-muenster.de/dtls-samples.html ) to carry out the test and reproduce the issue.
The test application has been compiled and executed within a docker container, having CentOS7 as base image, but the behaviour has been noticed with other base images OS too (e.g. Redhat, Ubuntu, Debian, SLES).
The same application running on a bare metal works without any issue.
Is there any known compatibility issue between Docker and OpenSSL/DTLS?
Is there any specific configuration to be done to overcome this issue?
Best Regards

How to resolve this docker error when running wolkenkit start on Windows 10

When I run wolkenkit start on a Windows machine, the command fails and I get the following output:
Starting the application...
Validating the application code...
Verifying health on environment default...
Verifying application status...
Verifying that ports are available...
Setting up network...
Building Docker images...
Starting Docker containers...
✗ Failed to start the application.
docker: Error response from daemon: driver failed programming external connectivity on endpoint boards-postgres (7cf3e33d876e8d22fced3926fdc9ddf2372b499803dc92a4b7bb403fd2552064): Error starting userland proxy: mkdir /port/tcp:0.0.0.0:3030:tcp:172.21.0.4:5432: input/output error.
ExecutableFailed: docker: Error response from daemon: driver failed programming external connectivity on endpoint boards-postgres (7cf3e33d876e8d22fced3926fdc9ddf2372b499803dc92a4b7bb403fd2552064): Error starting userland proxy: mkdir /port/tcp:0.0.0.0:3030:tcp:172.21.0.4:5432: input/output error.
at childProcess.exec (C:\Users\wagle\Dev\tnw\wolkenkit\src\shell\exec.js:21:20)
at ChildProcess.exithandler (child_process.js:301:5)
at ChildProcess.emit (events.js:189:13)
at maybeClose (internal/child_process.js:970:16)
at Process.ChildProcess._handle.onexit (internal/child_process.js:259:5)
I'm running on Windows 10 using Docker Desktop for Windows 2.0.0.3. Any ideas where this problem might originate from?
Actually, we (at the native web, the company behind wolkenkit), ran into this problem as well.
It's actually a problem caused by one of the latest updates for Windows 10. This updated introduced a new feature called "Fast startup" which causes problems for Docker.
See this issue for more details: https://github.com/docker/compose/issues/3277
As a quick fix, you can restart Docker. As a more long term solution, you can disable the "Fast Startup" feature, see https://github.com/docker/for-win/issues/953#issuecomment-342498223
Hope this helps 😊
PS: Please note that I am one of the core developers of wolkenkit.

Troubleshoot windows error: Failed to schedule Software Protection service for re-start at 2014-09-13T08:09:23Z. Error Code: 0x80040154

My setup:
Opertaing System: Windows 8.1
Memory: 16GB
HD: 500GB
etc. non relevant.
Issue:
I noticed the issue when my printer stopped working after a normal restart. At that point I tried to uninstall and reinstall the printer driver. The install failed.
At that point I also realized all my remote desktop connections were also failing, with not being able to find the remote host.
Here is the error I was seeing when install for the printer was failing:
can't start printer spooler service not enough resources are available to start the service
Manually trying to start the spooler service and checking in the event Viewer of windows showed that it was failing on:
Failed to schedule Software Protection service for re-start at 2014-09-13T08:09:30Z. Error Code: 0x80040154.
Further trying to restart the protection service revealed that it was failing on:
Task Scheduler service has encountered RPC initialization error in "RpcServerUseProtseq:ncacn_ip_tcp". Additional Data: Error Value: 1721.
In either case my computer had become somewhat useless as I couldn't install anything and my printer and remote desktop was broken too.
Reporting the problem just in case if someone has a similar issues.
The resolution for my problem is actually posted here, but way back so bringing it to more light:
http://social.technet.microsoft.com/Forums/windows/en-US/0c438376-1486-4ae4-9847-2de7a8767f27/task-scheduler-service-has-encountered-rpc-initialization-error-in?forum=itprovistasp
For me what worked was just to starting the prompt in adminstrator mode, running:
netsh winsock reset
and restarting my machine.
Not exactly certain of what actually fixed the issue.

Resources