SumoLogic/sumologic-collector-docker

Support Windows named pipe to access Docker API on Windows nodes

StefanScherer opened this issue · 0 comments

I'm trying to add a Sumo Collector on our Windows Server nodes which also run Docker engine.
I've read in https://help.sumologic.com/07Sumo-Logic-Apps/10Containers_and_Orchestration/Docker_Apps/Docker/01-Collect-Logs-and-Metrics-from-Docker that Windows is not supported.
On Windows the Docker engine creates a Windows Named Pipe \\.\pipe\docker_engine (or npipe:////./pipe/docker_engine) instead of the Unix socket /var/run/docker.sock.

How difficult would it be to read from the Windows named pipe instead of the Unix socket?

Maybe like this example? https://cdimascio.wordpress.com/2014/01/11/named-pipes-with-java/

Tools like Portainer are also able use the Docker API via the named pipe: portainer/portainer#1179