Uploaded image for project: 'Log4j 2'
  1. Log4j 2
  2. LOG4J2-3045

DOCKER_URI Value for log4j docker lookup

    XMLWordPrintableJSON

Details

    • Question
    • Status: Open
    • Minor
    • Resolution: Unresolved
    • 2.14.1
    • None
    • Configuration
    • None

    Description

      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.  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 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?

      Attachments

        Activity

          People

            Unassigned Unassigned
            sselvia Scott Selvia
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated: