Details
-
Question
-
Status: Open
-
Minor
-
Resolution: Unresolved
-
2.14.1
-
None
-
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?