moby-kafka-logdriver icon indicating copy to clipboard operation
moby-kafka-logdriver copied to clipboard

Error with socket

Open nlamirault opened this issue 8 years ago • 6 comments

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 ?

nlamirault avatar Jun 13 '17 07:06 nlamirault

+1

xuanyuan300 avatar Aug 10 '17 05:08 xuanyuan300

+1

Doooooo0o avatar Aug 30 '17 15:08 Doooooo0o

+1

jeisonmp avatar Jul 27 '18 14:07 jeisonmp

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!

os11k avatar Jul 30 '19 15:07 os11k

no commit for 2 yrs, imo it's a lost cause :)

Doooooo0o avatar Jul 30 '19 15:07 Doooooo0o

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!

aSemy avatar Oct 21 '21 23:10 aSemy