SumoLogic / sumologic-collector-docker

A Sumo Logic collector for Docker.
Apache License 2.0
69 stars 55 forks source link

Support Windows named pipe to access Docker API on Windows nodes #85

Closed StefanScherer closed 4 years ago

StefanScherer commented 4 years ago

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: https://github.com/portainer/portainer/issues/1179