moby-kafka-logdriver
moby-kafka-logdriver copied to clipboard
Error with socket
Hi, I've got an error from Docker engine when i try to enable the plugin :
$ docker plugin enable mickyg/kafka-logdriver:latest
Error response from daemon: dial unix /run/docker/plugins/d4a9d9e379304d0d2b245fc324b7712ea4a3656b9eb608b9d63a7943cef77068/kafka-logdriver.sock: connect: no such file or directory
I'm using docker-engine 17.05-ce. Any idea ?
+1
+1
+1
Hi! I would love to use this plugin, but I'm getting same error "kafka-logdriver.sock: connect: no such file or directory". Any ideas? Thank you!
no commit for 2 yrs, imo it's a lost cause :)
As a quick workaround I'm piping the output of a container to kcat / kafkacat.
docker logs \
--tail 0 \ # don't show log messages before 'now'
-f my_container \ # follow all logs from 'my_container'
2>&1 \ # combine stdout and stderr
| kafkacat -P -b localhost -t docker-my_container-log # produce each line to kafka
This is pretty fragile though. It might silently fail, and needs to be run manually. Maybe it can be run in another Docker container... I'll share any future improvements!