Docker Community Forums

Share and learn in the Docker community.

Plugin discovery for own logdriver

Hey,

on my Ubuntu 18.04 I installed Moby using apt.
I know how to create an own docker plugin using the go-helper and I can ‘docker plugin install’ a self-made log plugin with its own rootfs.
Intention of all this is to forward the stdout of all containers to an already existing log-system, that is non-standard.
Due to several reasons, I need to make the plugin an external plugin. Such, that it is started externally and discovered by Docker by one of the three methods described here:


(I am aware, that they do not state log-plugins there explicitly)

I created a plugin using the ServeUnix function call, which after starting creates a .sock in /run/docker/plugins
I also created a plugin using the ServeTCP function call, which creates a .spec file containing the target IP address in /var/lib/docker/

When starting a container using this command
docker run --log-driver=logdrivertcp hello-world
it says
docker: Error response from daemon: logger: no log driver named ‘logdrivertcp’ is registered.

Should this be working with Moby?

dev@dev-VirtualBox:/src/co/moby$ docker version
Client:
Version: 3.0.10+azure
API version: 1.40
Go version: go1.12.14
Git commit: 99c5edceb48d64c1aa5d09b8c9c499d431d98bb9
Built: Tue Nov 5 00:55:15 2019
OS/Arch: linux/amd64
Experimental: false

Server:
Engine:
Version: 3.0.10+azure
API version: 1.40 (minimum version 1.12)
Go version: go1.12.14
Git commit: ea84732a77
Built: Fri Jan 24 20:08:11 2020
OS/Arch: linux/amd64
Experimental: false
containerd:
Version: v1.2.11
GitCommit: f772c10a585ced6be8f86e8c58c2b998412dd963
runc:
Version: 1.0.0-rc10
GitCommit: dc9208a3303feef5b3839f4323d9beb36df0a9dd
docker-init:
Version: 0.18.0
GitCommit: fec3683

dev@dev-VirtualBox:/src/co/moby$ uname -a
Linux dev-VirtualBox 5.3.0-40-generic #32~18.04.1-Ubuntu SMP Mon Feb 3 14:05:59 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux