Sample Header Ad - 728x90

syslog logging driver giving the error protocol wrong type for socket

-1 votes
1 answer
367 views
I have a service defined via docker compose (see definition below). When I tried to start this service via docker-compose -f up --wait -d my_service, I get the error
Error response from daemon: failed to create task for container: failed to initialize logging driver: dial unix /dev/log: connect: protocol wrong type for socket
On my host server where I'm executing the docker compose cmd, I see the socket exists and my user has write perms:
srw-rw-rw-. 1 root root 0 Aug 29  2023 /dev/log
service definition:
my_service:
    command: 
    image: 
    volumes:
      - "/dev/log:/dev/log"
    logging:
      driver: "syslog"
      options:
        syslog-address: "unix:///dev/log"
        tag: "my_service"
Does anyone know what could be causing this error?
Asked by atl123 (3 rep)
Sep 20, 2024, 08:50 PM
Last activity: Sep 21, 2024, 02:06 AM