Scott Selvia created LOG4J2-3045:
------------------------------------

             Summary: DOCKER_URI Value for log4j docker lookup
                 Key: LOG4J2-3045
                 URL: https://issues.apache.org/jira/browse/LOG4J2-3045
             Project: Log4j 2
          Issue Type: Question
          Components: Configuration
    Affects Versions: 2.14.1
            Reporter: Scott Selvia


I've been trying to use the docker lookup to log the container id and name; 
I've set the DOCKER_URI to various values including 
[unix:///var/run/docker.sock]  and [http://localhost.|http://localhost./]  The 
following curl command has worked perfectly (curl --unix-socket 
/var/run/docker.sock http:/localhost/containers/json)  I mounted the location 
to the docker.sock to the container -> 
/var/run/docker.sock:/var/run/docker.sock.  I've stepped through the docker 
lookup method either the creation of the URL is not correct or when set to 
[http://localhost|http://localhost/] or tcp://localhost:2375 I'm getting an 
access error.

 

What is the correct value of the DOCKER_URI in order for the docker lookup 
method to pull the content for the container?



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to