Re: [docker-compose] syslog() not work

Custom Log <[email protected]>
Newsgroups comp.lang.php
Organization Aioe.org NNTP Server
Message-ID <[email protected]>
Il 24/12/22 12:18, Custom Log ha scritto:
> ...

Small correction

+ cat docker-compose.yml
services:
     web:
         image: php:apache
         extra_hosts:
             -  "host1:192.168.1.15"
         #network_mode: host
         logging:
             driver: syslog
             options:
                 syslog-address: "udp://host1:19540"
                 tag: "{{.Name}}/{{.ID}}"

+ docker-compose run web php -r 'syslog(LOG_ERR, "ABC") && 
print("OK!!!\n");'
Creating host_web_run ... done
Error response from daemon: failed to initialize logging driver: dial 
udp: lookup host1: Temporary failure in name resolution
ERROR: 1
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.